1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # For testing purposes, temporary articles can created:
31 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
32 # where '/' denotes a newline.
34 # This is the standard article assumed to exist.
59 MediaWiki:bad image list
61 * [[File:Bad.jpg]] except [[Nasty page]]
95 Template:echo_with_span
101 Template:echo_with_div
113 Template:table_attribs
116 |</noinclude>style="color: red"| Foo
138 This is a simple paragraph.
140 <p>This is a simple paragraph.
145 Paragraphs with extra newline spacing
168 Paragraphs with newline spacing with comment lines in between
176 <!--foo--><!--More than 1 comment disables stripping of this line!-->
233 Paragraphs with newline spacing with non-empty white-space lines in between
260 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
268 <!--foo--><!--More than 1 comment disables stripping of this line!-->
309 http://fr.wikipedia.org/wiki/🍺
310 <!-- EasterEgg we love beer, better be able be able to link to it -->
312 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
332 * plain''italic''plain
333 * plain''italic''plain''italic''plain
334 * plain'''bold'''plain
335 * plain'''bold'''plain'''bold'''plain
336 * plain''italic''plain'''bold'''plain
337 * plain'''bold'''plain''italic''plain
338 * plain''italic'''bold-italic'''italic''plain
339 * plain'''bold''bold-italic''bold'''plain
340 * plain'''''bold-italic'''italic''plain
341 * plain'''''bold-italic''bold'''plain
342 * plain''italic'''bold-italic'''''plain
343 * plain'''bold''bold-italic'''''plain
344 * plain l'''italic''plain
345 * plain l''''bold''' plain
348 </li><li> plain<i>italic</i>plain
349 </li><li> plain<i>italic</i>plain<i>italic</i>plain
350 </li><li> plain<b>bold</b>plain
351 </li><li> plain<b>bold</b>plain<b>bold</b>plain
352 </li><li> plain<i>italic</i>plain<b>bold</b>plain
353 </li><li> plain<b>bold</b>plain<i>italic</i>plain
354 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
355 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
356 </li><li> plain<i><b>bold-italic</b>italic</i>plain
357 </li><li> plain<b><i>bold-italic</i>bold</b>plain
358 </li><li> plain<i>italic<b>bold-italic</b></i>plain
359 </li><li> plain<b>bold<i>bold-italic</i></b>plain
360 </li><li> plain l'<i>italic</i>plain
361 </li><li> plain l'<b>bold</b> plain
366 # this example taken from the simple/Moon article
368 Italics and possessives
370 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
372 <p>obtained by <i><a href="/index.php?title=Lunar_Prospector&action=edit&redlink=1" class="new" title="Lunar Prospector (page does not exist)">Lunar Prospector</a>'</i>s gamma-ray spectrometer
377 ### 2-quote opening sequence tests
380 Italics and bold: 2-quote opening sequence: (2,2)
390 Italics and bold: 2-quote opening sequence: (2,3)
400 Italics and bold: 2-quote opening sequence: (2,4)
410 Italics and bold: 2-quote opening sequence: (2,5) (php)
419 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
421 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
433 ### 3-quote opening sequence tests
437 Italics and bold: 3-quote opening sequence: (3,2)
447 Italics and bold: 3-quote opening sequence: (3,3)
457 Italics and bold: 3-quote opening sequence: (3,4)
467 Italics and bold: 3-quote opening sequence: (3,5) (php)
476 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
478 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
490 ### 4-quote opening sequence tests
494 Italics and bold: 4-quote opening sequence: (4,2)
504 Italics and bold: 4-quote opening sequence: (4,3)
514 Italics and bold: 4-quote opening sequence: (4,4)
524 Italics and bold: 4-quote opening sequence: (4,5) (php)
533 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
535 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
541 <p>'<b>foo<i></i></b>
547 ### 5-quote opening sequence tests
551 Italics and bold: 5-quote opening sequence: (5,2) (php)
560 # Parsoid reverses the nesting order, compared to the PHP parser
562 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
574 Italics and bold: 5-quote opening sequence: (5,3)
584 Italics and bold: 5-quote opening sequence: (5,4)
588 <p><i><b>foo'</b></i>
594 Italics and bold: 5-quote opening sequence: (5,5)
603 ### multiple quote sequences in a line
606 Italics and bold: multiple quote sequences: (2,4,2)
610 <p><i>foo'<b>bar</b></i>
616 Italics and bold: multiple quote sequences: (2,4,3)
620 <p><i>foo'<b>bar</b></i>
626 Italics and bold: multiple quote sequences: (2,4,4)
630 <p><i>foo'<b>bar'</b></i>
636 Italics and bold: multiple quote sequences: (3,4,2) (php)
645 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
647 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
653 <p><b>foo'</b>bar<i></i>
659 Italics and bold: multiple quote sequences: (3,4,3) (php)
668 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
670 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
676 <p><b>foo'</b>bar<b></b>
681 ### other quote tests
684 Italics and bold: other quote tests: (2,3,5)
686 ''this is about '''foo's family'''''
688 <p><i>this is about <b>foo's family</b></i>
694 Italics and bold: other quote tests: (2,(3,3),2)
696 ''this is about '''foo's''' family''
698 <p><i>this is about <b>foo's</b> family</i>
704 Italics and bold: other quote tests: (3,2,3,2)
706 '''this is about ''foo'''s family''
708 <p><b>this is about <i>foo</i></b><i>s family</i>
713 # The Parsoid team believes the PHP parser's output on this test is wrong.
714 # It only checks for convert-to-bold-on-single-character-word when the word
715 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
716 # This means that the bold token in position 2 (0-indexed) gets converted by
717 # parsoid, but doesn't get changed by the PHP parser.
719 Italics and bold: other quote tests: (3,2,3,3) (php)
723 '''this is about ''foo'''s family'''
725 <p>'<i>this is about </i>foo<b>s family</b>
728 # This is the output the Parsoid team believes to be correct.
730 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
734 '''this is about ''foo'''s family'''
736 <p><b>this is about <i>foo'</i>s family</b>
742 Italics and bold: other quote tests: (3,(2,2),3)
744 '''this is about ''foo's'' family'''
746 <p><b>this is about <i>foo's</i> family</b>
752 Italicized possessive
754 The ''[[Main Page]]'''s talk page.
756 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
765 Non-html5 tags should be accepted
767 <center>''foo''</center>
770 <strike>''foo''</strike>
773 <center><i>foo</i></center>
774 <p><big><i>foo</i></big>
775 <font><i>foo</i></font>
776 <strike><i>foo</i></strike>
782 ### <nowiki> test cases
786 <nowiki> unordered list
788 <nowiki>* This is not an unordered list item.</nowiki>
790 <p>* This is not an unordered list item.
797 <nowiki>Lorem ipsum dolor
818 :There is not nowiki.
819 :There is <nowiki>nowiki</nowiki>.
821 #There is not nowiki.
822 #There is <nowiki>nowiki</nowiki>.
824 *There is not nowiki.
825 *There is <nowiki>nowiki</nowiki>.
827 <dl><dd>There is not nowiki.
828 </dd><dd>There is nowiki.
830 <ol><li>There is not nowiki.
831 </li><li>There is nowiki.
833 <ul><li>There is not nowiki.
834 </li><li>There is nowiki.
840 Entities inside <nowiki>
842 <nowiki><</nowiki>
853 Comments and Indent-Pre
855 <!-- comment 1 --> asdf
857 <!-- comment 1 --> asdf
860 <!-- comment 1 --> asdf
861 <!-- comment 2 -->xyz
863 <!-- comment 1 --> asdf
864 <!-- comment 2 --> xyz
920 asdf<!-- comment 1 -->jkl
930 <!-- foo --> b <!-- bar -->
944 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
950 Comment semantics and delimiters
952 <!-- --><!----><!-----><!------>
958 Comment semantics and delimiters, redux
960 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
961 -- foo -- funky huh? ... -->
967 Comment semantics and delimiters: directors cut
969 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
970 everything starting with < followed by !-- until the first -- and > we see,
971 that wouldn't be valid XML however, since in XML -- has to terminate a comment
979 Comment semantics: nesting
981 <!--<!-- no, we're not going to do anything fancy here -->-->
988 Comment semantics: unclosed comment at end
990 <!--This comment will run out to the end of the document
996 Comment in template title
1005 Comment on its own line post-expand
1017 Comment on its own line post-expand with non-significant whitespace
1029 ### paragraph wraping tests
1043 Block tag on one line
1055 Block tag on both lines
1067 Multiple lines without block tags
1085 Empty lines between lines with block tags
1115 ### Preformatted text
1124 And a [[Main Page|link]]
1130 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1135 Ident preformatting with inline content
1146 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1163 Regression with preformatted in <center>
1176 # Expected output in the following test is not really expected (there should be
1177 # <pre> in the output) -- it's only testing for well-formedness.
1179 Bug 6200: Preformatted in <blockquote>
1192 <pre> with attributes (bug 3202)
1194 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1196 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1201 <pre> with width attribute (bug 3202)
1203 <pre width="8">Narrow screen goodies</pre>
1205 <pre width="8">Narrow screen goodies</pre>
1210 <pre> with forbidden attribute (bug 3202)
1212 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1214 <pre width="8">Narrow screen goodies</pre>
1219 Entities inside <pre>
1228 <pre> with forbidden attribute values (bug 3202)
1230 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1232 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1237 <nowiki> inside <pre> (bug 13238)
1245 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1253 <pre><nowiki>Foo</nowiki></pre>
1258 <nowiki> and <pre> preference (first one wins)
1289 </pre> inside nowiki
1291 <nowiki></pre></nowiki>
1298 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1306 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1316 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1328 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1349 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1353 {{echo| foo}}{{echo| bar}}
1358 {{echo|<!--cmt--> foo}}
1360 <!--cmt-->{{echo| foo}}
1362 {{echo|{{echo| }}bar}}
1380 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1417 Templates: Single-line variant of parameter whitespace stripping test
1423 {{echo|{{echo| a}}}}
1425 {{echo|1={{echo| a}}}}
1438 Templates: Strip whitespace from named parameters, but not positional ones
1466 ### Parsoid-centric tests for testing RT edge cases for pre
1470 1a. Indent-Pre and Comments
1483 1b. Indent-Pre and Comments
1496 1c. Indent-Pre and Comments
1509 2a. Indent-Pre and tables
1530 2b. Indent-Pre and tables
1546 2c. Indent-Pre and tables (bug 42252)
1563 3a. Indent-Pre and block tags (single-line html)
1571 <pre><span> foo </span>
1576 3b. Indent-Pre and block tags (pre-content on separate line)
1628 4. Multiple spaces at start-of-line
1647 5. White-space in indent-pre
1648 NOTE: the white-space char on 2nd line is significant
1661 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1665 HTML-pre: 1. embedded newlines
1701 HTML-pre: 2: indented text
1714 HTML-pre: 3: other wikitext
1735 ### Definition lists
1742 <dl><dt> name </dt><dd> Definition
1748 Definition list for indentation only
1752 <dl><dd> Indented text
1758 Definition list with no space
1762 <dl><dt>name</dt><dd>Definition
1768 Definition list with URL link
1770 ; http://example.com/ : definition
1772 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1778 Definition list with bracketed URL link
1780 ;[http://www.example.com/ Example]:Something about it
1782 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1788 Definition list with wikilink containing colon
1790 ; [[Help:FAQ]]: The least-read page on Wikipedia
1792 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1797 # At Brion's and JeLuF's insistence... :)
1799 Definition list with news link containing colon
1801 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1803 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1809 Malformed definition list with colon
1811 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1813 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
1819 Definition lists: colon in external link text
1821 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1823 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1829 Definition lists: colon in HTML attribute
1831 ;<b style="display: inline">bold</b>
1833 <dl><dt><b style="display: inline">bold</b>
1839 Definition lists: self-closed tag
1841 ;one<br/>two : two-line fun
1843 <dl><dt>one<br />two </dt><dd> two-line fun
1849 Bug 11748: Literal closing tags
1853 <dd>test test test test test</dd>
1855 <dd>test test test test test</dd>
1860 <dd>test test test test test</dd>
1862 <dd>test test test test test</dd>
1868 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1871 ; term : description
1877 <dl><dt> term </dt><dd> description
1888 Definition list with empty definition and following paragraph
1893 <dl><dt> term</dt><dd>
1900 Nested definition lists using html syntax
1917 Definition Lists: No nesting: Multiple dd's
1931 Definition Lists: Indentation: Regular
1947 Definition Lists: Indentation: Missing 1st level
1961 Definition Lists: Indentation: Multi-level indent
1965 <dl><dd><dl><dd><dl><dd>i3
1973 Definition Lists: Hacky use to indent tables
1980 should be left alone
1982 <dl><dd><dl><dd><table>
1987 </td></tr></table></dd></dl></dd></dl>
1989 should be left alone
1992 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1993 ## as an empty dt item. It also ignores all but the last ";" when followed
1994 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1995 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1998 ## Ex: ";;t2 ::d2" is transformed into:
2010 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2011 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2022 ## All Parsoid only definition list tests have this difference.
2024 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2025 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2028 Table / list interaction: indented table with lists in table contents
2050 </td></tr></table></dd></dl>
2055 Table / list interaction: lists nested in tables nested in indented lists
2080 </td></tr></table></dd></dl>
2088 Definition Lists: Nesting: Multi-level (Parsoid only)
2118 Definition Lists: Nesting: Test 2 (Parsoid only)
2138 Definition Lists: Nesting: Test 3 (Parsoid only)
2166 Definition Lists: Nesting: Test 4
2171 <dl><dd><dl><dd><dl><dt>t3
2180 ## The Parsoid team believes the following three test exposes a
2181 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2182 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2184 Definition Lists: Mixed Lists: Test 1 (php)
2192 <dl><dd><dl><dt><ul><li> foo
2202 Definition Lists: Mixed Lists: Test 1 (parsoid)
2210 <dl><dd><dl><dt><ul><li> foo
2211 </li></ul></dt><dd><ul><li> bar
2212 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2216 Definition Lists: Mixed Lists: Test 2
2230 Definition Lists: Mixed Lists: Test 3
2235 <ul><li><dl><dd><dl><dd><dl><dd> d1
2246 Definition Lists: Mixed Lists: Test 4
2251 <ul><li><dl><dt>d1 </dt><dd>d2
2252 </dd><dt>d3 </dt><dd>d4
2260 Definition Lists: Mixed Lists: Test 5
2275 Definition Lists: Mixed Lists: Test 6
2280 <ol><li><ul><li><dl><dd>d1
2292 Definition Lists: Mixed Lists: Test 7
2306 Definition Lists: Mixed Lists: Test 8
2322 Definition Lists: Mixed Lists: Test 9
2326 <ul><li><dl><dt>foo </dt><dd>bar
2334 Definition Lists: Mixed Lists: Test 10
2338 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2345 # The Parsoid team disagrees with the PHP parser's seemingly-random
2346 # rules regarding dd/dt on the next two tests. Parsoid is more
2347 # consistent, and recognizes the shared nesting and keeps the
2348 # still-open tags around until the nesting is complete.
2351 Definition Lists: Mixed Lists: Test 11 (php)
2358 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2363 <dl><dt>boo </dt><dd>baz
2372 Definition Lists: Mixed Lists: Test 11 (parsoid)
2379 <ul><li><ol><li><ul><li><ol><li><dl><dt><ul><li><dl><dt><dl><dt>foo </dt><dd>bar
2380 </dd></dl></dt></dl></li></ul></dt><dt>boo </dt><dd>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2385 Definition Lists: Weird Ones: Test 1 (php)
2389 *#;*::;; foo : bar (who uses this?)
2391 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2403 Definition Lists: Weird Ones: Test 1 (parsoid)
2407 *#;*::;; foo : bar (who uses this?)
2409 <ul><li><ol><li><dl><dt><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> foo </dt><dd> bar (who uses this?)</dd></dl></dt></dl></dd></dl></dd></dl></li></ul></dt></dl></li></ol></li></ul>
2416 External links: non-bracketed
2418 Non-bracketed: http://example.com
2420 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2425 External links: numbered
2427 Numbered: [http://example.com]
2428 Numbered: [http://example.net]
2429 Numbered: [http://example.com]
2431 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2432 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2433 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2438 External links: specified text
2440 Specified text: [http://example.com link]
2442 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2447 External links: trail
2449 Linktrails should not work for external links: [http://example.com link]s
2451 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2456 External links: dollar sign in URL
2458 http://example.com/1$2345
2460 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2465 External links: dollar sign in URL (named)
2467 [http://example.com/1$2345]
2469 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2474 External links: open square bracket forbidden in URL (bug 4377)
2476 http://example.com/1[2345
2478 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2483 External links: open square bracket forbidden in URL (named) (bug 4377)
2485 [http://example.com/1[2345]
2487 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2492 External links: nowiki in URL link text (bug 6230)
2494 [http://example.com/ <nowiki>''example site''</nowiki>]
2496 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2501 External links: newline forbidden in text (bug 6230 regression check)
2503 [http://example.com/ first
2506 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2512 External links: Pipe char between url and text
2514 [http://example.com | link]
2516 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2521 External links: protocol-relative URL in brackets
2523 [//example.com/ Test]
2525 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2530 External links: protocol-relative URL in brackets without text
2534 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2539 External links: protocol-relative URL in free text is left alone
2543 <p>//example.com/Foo
2548 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2550 foo//example.com/Foo
2552 <p>foo//example.com/Foo
2559 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2561 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2566 External image from https
2568 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2570 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2575 Link to non-http image, no img tag
2577 Link to non-http image, no img tag: ftp://example.com/test.jpg
2579 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
2584 External links: terminating separator
2586 Terminating separator: http://example.com/thing,
2588 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2593 External links: intervening separator
2595 Intervening separator: http://example.com/1,2,3
2597 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2602 External links: old bug with URL in query
2604 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2606 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2611 External links: old URL-in-URL bug, mixed protocols
2613 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2615 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2620 External links: URL in text
2622 URL in text: [http://example.com http://example.com]
2624 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2629 External links: Clickable images
2631 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2633 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
2638 External links: raw ampersand
2640 Old & use: http://x&y
2642 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2647 External links: encoded ampersand
2649 Old & use: http://x&y
2651 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2656 External links: encoded equals (bug 6102)
2658 http://example.com/?foo=bar
2660 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2665 External links: [raw ampersand]
2667 Old & use: [http://x&y]
2669 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2674 External links: [encoded ampersand]
2676 Old & use: [http://x&y]
2678 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2683 External links: [encoded equals] (bug 6102)
2685 [http://example.com/?foo=bar]
2687 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2692 External links: [IDN ignored character reference in hostname; strip it right off]
2694 [http://e‌xample.com/]
2696 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2700 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2701 # Where an external link could easily circumvent the sanitization of the text of
2702 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2703 # test demands a higher standard. That's a bit strange.
2707 # http://example.com -> [http://example.com|http://example.com]
2708 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2710 # The first example is sanitized, but the second is not. Any security benefits
2711 # from this production are trivial to circumvent. Either remove this test and
2712 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2713 # the test accordingly.
2718 External links: IDN ignored character reference in hostname; strip it right off
2720 http://e‌xample.com/
2722 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2727 External links: www.jpeg.org (bug 554)
2731 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2736 External links: URL within URL (original bug 2)
2738 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2740 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2745 BUG 361: URL inside bracketed URL
2747 [http://www.example.com/foo http://www.example.com/bar]
2749 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2754 BUG 361: URL within URL, not bracketed
2756 http://www.example.com/foo?=http://www.example.com/bar
2758 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
2763 BUG 289: ">"-token in URL-tail
2765 http://www.example.com/<hello>
2767 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2772 BUG 289: literal ">"-token in URL-tail
2774 http://www.example.com/<b>html</b>
2776 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2781 BUG 289: ">"-token in bracketed URL
2783 [http://www.example.com/<hello> stuff]
2785 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2790 BUG 289: literal ">"-token in bracketed URL
2792 [http://www.example.com/<b>html</b> stuff]
2794 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2799 BUG 289: literal double quote at end of URL
2801 http://www.example.com/"hello"
2803 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2808 BUG 289: literal double quote in bracketed URL
2810 [http://www.example.com/"hello" stuff]
2812 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2817 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2819 [http://www.example.com test]
2821 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2826 External links: link text with spaces
2828 [http://www.example.com a b c]
2829 [http://www.example.com ''a'' ''b'']
2831 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
2832 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
2837 External links: wiki links within external link (Bug 3695)
2839 [http://example.com [[wikilink]] embedded in ext link]
2841 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
2846 BUG 787: Links with one slash after the url protocol are invalid
2850 [http:/example.com title]
2852 <p>http:/example.com
2853 </p><p>[http:/example.com title]
2858 Bracketed external links with template-generated invalid target
2860 [{{echo|http:/example.com}} title]
2862 <p>[http:/example.com title]
2867 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2869 ''[http://example.com text'']
2870 [http://example.com '''text]'''
2871 ''Something [http://example.com in italic'']
2872 ''Something [http://example.com mixed''''', even bold]'''
2873 '''''Now [http://example.com both''''']
2875 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2876 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2877 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2878 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2879 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2885 Bug 4781: %26 in URL
2887 http://www.example.com/?title=AT%26T
2889 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2893 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2894 # % is actually legal in HTML5. Any change in output would need testing though.
2896 Bug 4781, 5267: %25 in URL
2898 http://www.example.com/?title=100%25_Bran
2900 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
2905 Bug 4781, 5267: %28, %29 in URL
2907 http://www.example.com/?title=Ben-Hur_%281959_film%29
2909 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
2915 Bug 4781: %26 in autonumber URL
2917 [http://www.example.com/?title=AT%26T]
2919 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2924 Bug 4781, 5267: %26 in autonumber URL
2926 [http://www.example.com/?title=100%25_Bran]
2928 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2933 Bug 4781, 5267: %28, %29 in autonumber URL
2935 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2937 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2943 Bug 4781: %26 in bracketed URL
2945 [http://www.example.com/?title=AT%26T link]
2947 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2952 Bug 4781, 5267: %26 in bracketed URL
2954 [http://www.example.com/?title=100%25_Bran link]
2956 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2961 Bug 4781, 5267: %28, %29 in bracketed URL
2963 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2965 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2970 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2972 Some [http://example.com/ pretty ''italics'' and stuff]!
2974 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2979 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2981 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2983 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
2988 External link containing double-single-quotes with no space separating the url from text in italics
2990 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
2992 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
2997 URL-encoding in URL functions (single parameter)
2999 {{localurl:Some page|amp=&}}
3001 <p>/index.php?title=Some_page&amp=&
3006 URL-encoding in URL functions (multiple parameters)
3008 {{localurl:Some page|q=?&=&}}
3010 <p>/index.php?title=Some_page&q=?&amp=&
3017 http://example.com/index.php?foozoid%5B%5D=bar
3019 http://example.com/index.php?foozoid[]=bar
3021 <p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
3022 </p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
3027 IPv6 urls (bug 21261)
3031 http://[2404:130:0:1000::187:2]/index.php
3033 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://[2404:130:0:1000::187:2]/index.php</a>
3038 Non-extlinks in brackets
3047 [{{echo|foo}} ''bar'']
3048 [{{echo|foo}}l's] errand
3049 [{{echo|foo}}l's errand]
3051 [url=http://example.com]
3064 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3075 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3077 Normal text. '''''Bold italic text.''''' Normal text.
3079 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3080 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3086 Unclosed and unmatched quotes (php)
3090 '''''Bold italic text '''with bold deactivated''' in between.'''''
3092 '''''Bold italic text ''with italic deactivated'' in between.'''''
3096 ..spanning two paragraphs (should not work).'''
3098 '''Bold tag left open
3100 ''Italic tag left open
3104 <!-- Unmatching number of opening, closing tags: -->
3105 '''This year''''s election ''should'' beat '''last year''''s.
3107 ''Tom'''s car is bigger than ''Susan'''s.
3109 Plain ''italic'''s plain
3111 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3112 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3113 </p><p><b>Bold text..</b>
3114 </p><p>..spanning two paragraphs (should not work).
3115 </p><p><b>Bold tag left open</b>
3116 </p><p><i>Italic tag left open</i>
3118 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3119 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3120 </p><p>Plain <i>italic'</i>s plain
3123 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3124 # parser strips. The wikitext contains just the first half of the bold
3125 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3126 # differently than the PHP parser.)
3128 Unclosed and unmatched quotes (parsoid)
3132 '''''Bold italic text '''with bold deactivated''' in between.'''''
3134 '''''Bold italic text ''with italic deactivated'' in between.'''''
3138 ..spanning two paragraphs (should not work).'''
3140 '''Bold tag left open
3142 ''Italic tag left open
3146 <!-- Unmatching number of opening, closing tags: -->
3147 '''This year''''s election ''should'' beat '''last year''''s.
3149 ''Tom'''s car is bigger than ''Susan'''s.
3151 Plain ''italic'''s plain
3153 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3154 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3155 </p><p><b>Bold text..</b>
3156 </p><p>..spanning two paragraphs (should not work).<b></b>
3157 </p><p><b>Bold tag left open</b>
3158 </p><p><i>Italic tag left open</i>
3160 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3161 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3162 </p><p>Plain <i>italic'</i>s plain
3169 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3172 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3173 # is the bare minimun required by the spec, see:
3174 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3176 A table with no data. (php)
3183 # Parsoid team replies: empty table tags are legal in HTML5
3185 A table with no data. (parsoid)
3194 # A table with nothing but a caption is invalid XHTML, we might want to render
3195 # this as <p>caption</p>
3197 A table with nothing but a caption (php)
3207 </caption><tr><td></td></tr></table>
3210 # Parsoid team replies: table with only a caption is legal in HTML5
3212 A table with nothing but a caption (parsoid)
3220 <table><caption> caption</caption></table>
3224 A table with caption with default-spaced attributes and a table row
3227 |+ style="color: red;" | caption1
3233 <caption style="color: red;"> caption1
3242 A table with captions with non-default spaced attributes and a table row
3245 |+style="color: red;"|caption2
3246 |+ style="color: red;"| caption3
3252 <caption style="color: red;">caption2
3254 <caption style="color: red;"> caption3
3263 Table td-cell syntax variations
3267 | foo bar foo || baz
3268 | style='color:red;' | baz
3269 | style='color:red;' || baz
3276 <td> foo bar foo </td>
3279 <td style="color:red;"> baz
3281 <td> style='color:red;' </td>
3309 Simple table but with multiple dashes for row wikitext
3327 Multiplication table
3329 {| border="1" cellpadding="2"
3330 |+Multiplication table
3332 ! × !! 1 !! 2 !! 3
3350 <table border="1" cellpadding="2">
3351 <caption>Multiplication table
3398 Accept "||" in table headings
3413 Accept "||" in indented table headings
3423 </th></tr></table></dd></dl>
3428 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3445 Accept "| !" at start of line in tables (ignore !-attribute)
3449 | !style="color:red" | bar
3461 Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present, or in 1st cell when there is a space between "|" and +/-
3465 |style='color:red;'|+1
3466 |style='color:blue;'|-1
3478 <td style="color:red;">+1
3480 <td style="color:blue;">-1
3504 |rowspan=2| Cell 2, row 1 (and 2)
3515 <td rowspan="2"> Cell 2, row 1 (and 2)
3533 {| bgcolor=#ABCDEF border=2
3538 |the original table again
3546 <table bgcolor="#ABCDEF" border="2">
3554 <td>the original table again
3560 Invalid attributes in table cell (bug 1830)
3575 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3578 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3582 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3583 <td>]" onmouseover="alert(document.cookie)">test
3592 Indented table markup mixed with indented pre content (proposed in bug 6200)
3597 Text that should be rendered preformatted
3605 <pre>Text that should be rendered preformatted
3614 Template-generated table cell attributes and cell content
3622 <td style="color: red"> Foo
3628 Table with row followed by newlines and table heading
3646 Table with empty line following the start tag
3663 # FIXME: Preserve the attribute properly (with an empty string as value) in
3664 # the PHP parser. Parsoid implements the behavior below.
3666 Table attributes with empty value
3682 Wikitext table with a lot of comments
3705 Wikitext table with double-line table cell
3722 Table cell with a single comment
3738 # The expected HTML structure in this test is debatable. The PHP parser does
3739 # not parse this kind of table at all. The main focus for Parsoid is on
3740 # round-tripping, so this output is ok for now. TODO: revisit!
3742 Wikitext table with html-syntax row (Parsoid)
3754 <td>foo</td></tr></tbody></table>
3761 Plain link, capitalized
3765 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3770 Plain link, uncapitalized
3774 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3781 [[Main Page|The Main Page]]
3783 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3792 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3797 Broken link with fragment
3799 [[Zigzagzogzagzig#zug]]
3801 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3806 Special page link with fragment
3808 [[Special:Version#anchor]]
3810 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3815 Nonexistent special page link with fragment
3817 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3819 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3826 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3828 <p>xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a>, xxx<a href="/wiki/Main_Page" title="Main Page">Main Page</a>, Xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a> XXX<a href="/wiki/Main_Page" title="Main Page">main Page</a>, XXX<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3835 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3837 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
3848 Bug 43661: Piped links with identical prefixes
3850 [[prefixed article|prefixed articles with spaces]]
3852 [[prefixed article|prefixed articlesaoeu]]
3854 [[Main Page|Main Page test]]
3856 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3857 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3858 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3864 Link with HTML entity in suffix / tail
3866 [[Main Page]]", [[Main Page]]a
3868 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3873 Link with 3 brackets
3882 Piped link with 3 brackets
3884 [[[main page|the main page]]]
3886 <p>[[[main page|the main page]]]
3891 Link with multiple pipes
3893 [[Main Page|The|Main|Page]]
3895 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3902 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3904 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
3909 Piped link to namespace
3911 [[Meta:Disclaimers|The disclaimers]]
3913 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3920 [[Usually caused by a typo (oops}]]
3922 <p>[[Usually caused by a typo (oops}]]
3927 Link containing % (not as a hex sequence)
3931 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
3936 Link containing % as a single hex sequence interpreted to char
3940 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
3945 Link containing % as a double hex sequence interpreted to hex sequence
3949 <p>[[7%2525 Solution]]
3954 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3955 Example for such a section: == < ==
3957 [[%23%3c]][[%23%3e]]
3959 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3964 Link containing "<#" and ">#" as a hex sequences
3966 [[%3c%23]][[%3e%23]]
3968 <p>[[%3c%23]][[%3e%23]]
3973 Link containing an equals sign
3975 [[Special:BookSources/isbn=4-00-026157-6]]
3977 <p><a href="/wiki/Special:BookSources/isbn%3D4-00-026157-6" title="Special:BookSources/isbn=4-00-026157-6">Special:BookSources/isbn=4-00-026157-6</a>
3984 Just a test of an article title containing a tilde.
3987 # note that links containing signatures, like [[Foo~~~~]], are
3988 # massaged by the pre-save transform (PST) and so the tildes are never
3989 # seen by the parser.
3991 Link containing a tilde
3995 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4000 Link containing double-single-quotes '' (bug 4598)
4002 [[Lista d''e paise d''o munno]]
4004 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
4009 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4011 Some [[Link|pretty ''italics'' and stuff]]!
4013 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
4018 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4020 ''Some [[Link|pretty ''italics'' and stuff]]!
4022 <p><i>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
4027 Link with double quotes in title part (literal) and alternate part (interpreted)
4029 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4033 [[''Pentecoste''|Pentecoste]]
4035 [[''Pentecoste''|''Pentecoste'']]
4037 <p><a href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
4038 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
4039 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
4040 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
4045 Broken image links with HTML captions (bug 39700)
4047 [[File:Nonexistent|<script></script>]]
4048 [[File:Nonexistent|100px|<script></script>]]
4049 [[File:Nonexistent|<]]
4050 [[File:Nonexistent|a<i>b</i>c]]
4052 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4053 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4054 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4055 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4062 [[http://www.example.com]]
4064 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4069 Plain link to URL with link text
4071 [[http://www.example.com Link text]]
4073 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4078 Plain link to protocol-relative URL
4080 [[//www.example.com]]
4082 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4087 Plain link to protocol-relative URL with link text
4089 [[//www.example.com Link text]]
4091 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4096 Plain link to page with question mark in title
4102 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4103 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4108 # I'm fairly sure the expected result here is wrong.
4109 # We want these to be URL links, not pseudo-pages with URLs for titles....
4110 # However the current output is also pretty screwy.
4113 # I'm changing it to match the current output--it arguably makes more
4114 # sense in the light of the test above. Old expected result was:
4115 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4117 # But I think this test is bordering on "garbage in, garbage out" anyway.
4122 Piped link to URL: [[http://www.example.com|an example URL]]
4124 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4129 BUG 2: [[page|http://url/]] should link to page, not http://url/
4131 [[Main Page|http://url/]]
4133 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4138 BUG 337: Escaped self-links should be bold
4142 [[Bug462]] [[Bug462]]
4144 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4149 Self-link to section should not be bold
4153 [[Main Page#section]]
4155 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4166 Self-link to numeric title
4172 <p><strong class="selflink">0</strong>
4177 Link to numeric-equivalent title
4183 <p><a href="/wiki/00" title="00">00</a>
4188 <nowiki> inside a link
4190 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4192 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4197 Non-breaking spaces in title
4199 [[ Main Page ]]
4201 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4206 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4212 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4217 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4223 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4228 Internal link with en linktrail: no apostrophes (bug 27473)
4234 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4239 Internal link with ca linktrail with apostrophes (bug 27473)
4245 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4250 Internal link with kaa linktrail with apostrophes (bug 27473)
4256 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4261 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4269 [http://wp.org ''foo'']
4271 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4272 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4273 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4274 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4279 ### Interwiki links (see maintenance/interwiki.sql)
4283 Inline interwiki link
4285 [[MeatBall:SoftSecurity]]
4287 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4292 Inline interwiki link with empty title (bug 2372)
4296 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4301 Interwiki link encoding conversion (bug 1636)
4303 *[[Wikipedia:ro:Olteniţa]]
4304 *[[Wikipedia:ro:Olteniţa]]
4306 <ul><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
4307 </li><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
4313 Interwiki link with fragment (bug 2130)
4315 [[MeatBall:SoftSecurity#foo]]
4317 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4332 Double interlanguage link
4343 Interlanguage link, with prefix links
4355 Double interlanguage link, with prefix links (bug 8897)
4368 Parsoid-specific test: Wikilinks with should RT properly
4374 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4392 Broken br tag sanitization
4401 Incorrecly removing closing slashes from correctly formed XHTML
4403 <br style="clear:both;" />
4405 <p><br style="clear:both;" />
4410 Failing to transform badly formed HTML into correct XHTML
4412 <br style="clear: left;">
4413 <br style="clear: right;">
4414 <br style="clear: both;">
4416 <p><br style="clear: left;" />
4417 <br style="clear: right;" />
4418 <br style="clear: both;" />
4423 Handling html with a div self-closing tag
4432 <p><div title />
4436 <p><div title=bar />
4437 <div title=bar/>
4439 <div title="bar/"></div>
4445 Handling html with a br self-closing tag
4454 <p><br title="title" />
4455 <br title="title" />
4464 Horizontal ruler (should it add that extra space?)
4478 Horizontal ruler -- 4+ dashes render hr
4487 Horizontal ruler -- eats additional dashes on the same line
4496 Horizontal ruler -- does not collapse dashes on consecutive lines
4507 Horizontal ruler -- <4 dashes render as plain text
4516 Horizontal ruler -- Supports content following dashes on same line
4525 ### Block-level elements
4548 <ol><li>Numbered list
4565 ***#Number on level 4
4567 **#Number on level 3
4568 **#Number on level 3
4572 #** Level 3, but ordered
4575 <ol><li> with numbers
4577 <ul><li> and bullets
4579 <ol><li> and numbers
4581 </li><li>bullets again
4582 <ul><li>bullet level 2
4583 <ul><li>bullet level 3
4584 <ol><li>Number on level 4
4587 </li><li>bullet level 2
4588 <ol><li>Number on level 3
4589 </li><li>Number on level 3
4592 <ol><li>number level 2
4595 <ul><li><ul><li> Level 3
4599 <ol><li><ul><li><ul><li> Level 3, but ordered
4633 Nested lists 3 (first element empty)
4646 Nested lists 4 (first element empty)
4659 Nested lists 5 (both elements empty)
4672 Nested lists 6 (both elements empty)
4685 Nested lists 7 (skip initial nesting levels)
4689 <ul><li><ul><li><ul><li> foo
4697 Nested lists 8 (multiple nesting transitions)
4705 <ul><li><ul><li> bar
4715 1. Lists with start-of-line-transparent tokens before bullets: Comments
4729 2. Lists with start-of-line-transparent tokens before bullets: Template close
4741 Unbalanced closing block tags break a list
4742 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4752 </li></ul></div><div>
4758 Unbalanced closing non-block tags don't break a list
4759 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4769 <ul><li>a<span></span>
4775 Unclosed formatting tags that straddle lists are closed and reopened
4776 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4784 </li><li> <s> b </s>
4789 List embedded in a non-block tag
4790 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4798 <p><small></small></p>
4804 <p><small></small></p>
4808 List items are not parsed correctly following a <pre> block (bug 785)
4814 <ul><li> <pre>foo</pre>
4815 </li><li> <pre>bar</pre>
4822 List items from template
4833 * notSOL{{inner list}}
4852 List interrupted by empty line or heading
4862 <ul><li><ul><li> bar
4865 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a>]</span> <span class="mw-headline" id="A_heading">A heading</span></h2>
4866 <ul><li> Another list item
4872 Multiple list tags generated by templates
4887 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
4890 <!--This line will NOT split the list-->
4892 <!--This line will NOT split the list either-->
4894 <!--foo--> <!--This line with more than 1 comment will split the list-->
4911 Magic Word: {{CURRENTDAY}}
4920 Magic Word: {{CURRENTDAY2}}
4929 Magic Word: {{CURRENTDAYNAME}}
4938 Magic Word: {{CURRENTDOW}}
4947 Magic Word: {{CURRENTMONTH}}
4956 Magic Word: {{CURRENTMONTHABBREV}}
4958 {{CURRENTMONTHABBREV}}
4965 Magic Word: {{CURRENTMONTHNAME}}
4967 {{CURRENTMONTHNAME}}
4974 Magic Word: {{CURRENTMONTHNAMEGEN}}
4976 {{CURRENTMONTHNAMEGEN}}
4983 Magic Word: {{CURRENTTIME}}
4992 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5001 Magic Word: {{CURRENTYEAR}}
5010 Magic Word: {{FULLPAGENAME}}
5012 title=[[User:Ævar Arnfjörð Bjarmason]]
5016 <p>User:Ævar Arnfjörð Bjarmason
5021 Magic Word: {{FULLPAGENAMEE}}
5023 title=[[User:Ævar Arnfjörð Bjarmason]]
5027 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5032 Magic Word: {{NAMESPACE}}
5034 title=[[User:Ævar Arnfjörð Bjarmason]]
5043 Magic Word: {{NAMESPACEE}}
5045 title=[[User:Ævar Arnfjörð Bjarmason]]
5054 Magic Word: {{NAMESPACENUMBER}}
5056 title=[[User:Ævar Arnfjörð Bjarmason]]
5065 Magic Word: {{NUMBEROFFILES}}
5074 Magic Word: {{PAGENAME}}
5076 title=[[User:Ævar Arnfjörð Bjarmason]]
5080 <p>Ævar Arnfjörð Bjarmason
5085 Magic Word: {{PAGENAME}} with metacharacters
5087 title=[['foo & bar = baz']]
5091 <p><i>'foo & bar = baz'</i>
5096 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5098 title=[[*RFC 1234 http://example.com/]]
5102 <p>*RFC 1234 http://example.com/
5107 Magic Word: {{PAGENAMEE}}
5109 title=[[User:Ævar Arnfjörð Bjarmason]]
5113 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5118 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5120 title=[[*RFC 1234 http://example.com/]]
5124 <p>*RFC_1234_http://example.com/
5129 Magic Word: {{REVISIONID}}
5138 Magic Word: {{SCRIPTPATH}}
5147 Magic Word: {{SERVER}}
5151 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5156 Magic Word: {{SERVERNAME}}
5165 Magic Word: {{SITENAME}}
5174 Case-sensitive magic words, when cased differently, should just be template transclusions
5181 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5182 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5183 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5184 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5189 Case-insensitive magic words should still work with weird casing.
5199 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5204 Namespace 1 {{ns:1}}
5213 Namespace 1 {{ns:01}}
5222 Namespace 0 {{ns:0}} (bug 4783)
5230 Namespace 0 {{ns:00}} (bug 4783)
5238 Namespace -1 {{ns:-1}}
5247 Namespace User {{ns:User}}
5256 Namespace User talk {{ns:User_talk}}
5265 Namespace User talk {{ns:uSeR tAlK}}
5274 Namespace File {{ns:File}}
5283 Namespace File {{ns:Image}}
5292 Namespace (lang=de) Benutzer {{ns:User}}
5303 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5309 <p>Benutzer Diskussion
5317 {{urlencode:hi world?!}}
5318 {{urlencode:hi world?!|WIKI}}
5319 {{urlencode:hi world?!|PATH}}
5320 {{urlencode:hi world?!|QUERY}}
5333 Magic links: internal link to RFC (bug 479)
5337 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5342 Magic links: RFC (bug 479)
5346 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5351 Magic links: ISBN (bug 1937)
5355 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5360 Magic links: PMID incorrectly converts space to underscore
5364 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5373 Nonexistent template
5375 {{thistemplatedoesnotexist}}
5377 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5382 Template with invalid target containing tags
5384 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5386 <p>{{a<b>b</b>|foo|a=b|a = b}}
5391 Template with invalid target containing unclosed tag
5393 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5395 <p>{{a<b>|foo|a=b|a = b}}</b>
5402 This is a test template
5410 <p>This is a test template
5415 Template with explicit namespace
5419 <p>This is a test template
5427 This is a test template with parameter {{{param}}}
5433 {{paramtest|param=foo}}
5435 <p>This is a test template with parameter foo
5440 Template:paramtestnum
5446 Template unnamed parameter
5448 {{paramtestnum|Main Page|the main page}}
5450 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5455 Template:templatesimple
5461 Template:templateredirect
5463 #redirect [[Template:templatesimple]]
5467 Template:templateasargtestnum
5473 Template:templateasargtest
5475 {{template{{{templ}}}}}
5479 Template:templateasargtest2
5485 Template with template name as unnamed argument
5487 {{templateasargtestnum|templatesimple}}
5494 Template with template name as argument
5496 {{templateasargtest|templ=simple}}
5503 Template with template name as argument (2)
5505 {{templateasargtest2|templ=templatesimple}}
5512 Template:templateasargtestdefault
5514 {{{{{templ|templatesimple}}}}}
5524 Template with default value
5526 {{templateasargtestdefault}}
5533 Template with default value (value set)
5535 {{templateasargtestdefault|templ=templa}}
5544 {{templateredirect}}
5551 Template with argument in separate line
5553 {{ templateasargtest |
5561 Template with complex template as argument
5564 param ={{ templateasargtest |
5567 <p>This is a test template with parameter (test)
5572 Template with thumb image (with link in description)
5575 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5577 This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
5582 Template:complextemplate
5584 {{{1}}} {{paramtest|
5585 param ={{{param}}}}}
5589 Template with complex arguments
5592 param ={{ templateasargtest |
5593 templ = simple }}|[[Template:complextemplate|link]]}}
5595 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5600 BUG 553: link with two variables in a piped link
5603 |[[{{{1}}}|{{{2}}}]]
5608 <td>[[{{{1}}}|{{{2}}}]]
5614 Magic variable as template parameter
5616 {{paramtest|param={{SITENAME}}}}
5618 <p>This is a test template with parameter MediaWiki
5625 [[{{{param}}}|link]]
5629 Template parameter as link source
5631 {{linktest|param=Main Page}}
5633 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5638 Template-generated attribute string (k='v')
5640 <span {{attr_str|id|v1}}>bar</span>
5642 <p><span id="v1">bar</span>
5649 including another template, {{paramtest|param={{{arg}}}}}
5653 Template passing argument to another template
5655 {{paramtest2|arg='hmm'}}
5657 <p>including another template, This is a test template with parameter 'hmm'
5668 Template as link source
5672 [[{{linktest2}}|Main Page]]
5674 [[{{linktest2}}]]Page
5676 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5677 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5678 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5696 Template infinite loop
5700 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5705 Template from main namespace
5724 BUG 529: Template with table, not included at beginning of line
5743 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5763 BUG 41: Template parameters shown as broken links
5772 Template with targets containing wikilinks
5776 {{[[{{echo|foo}}]]}}
5778 {{{{echo|[[foo}}]]}}
5780 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5781 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5789 ''None'' of '''this''' should be
5791 but rather passed unmodified
5795 # hmm, fix this or just deprecate msgnw and document its behavior?
5801 {{msgnw:MSGNW test}}
5803 <p>''None'' of '''this''' should be
5805 but rather passed unmodified
5813 {{int:youhavenewmessages|lots of money|not!}}
5815 <p>You have lots of money (not!).
5822 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5826 <includeonly> and <noinclude> being included
5837 <onlyinclude>Foo</onlyinclude>bar
5841 <onlyinclude> being included
5853 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5857 <onlyinclude> and <includeonly> being included
5866 <includeonly> and <noinclude> on a page
5868 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5875 Un-closed <noinclude>
5882 <onlyinclude> on a page
5884 <onlyinclude>Foo</onlyinclude>bar
5891 Un-closed <onlyinclude>
5898 Self-closed noinclude, includeonly, onlyinclude tags
5909 Unbalanced includeonly and noinclude tags
5913 |b</noinclude></noinclude>
5914 |c</noinclude></includeonly>
5915 |d</includeonly></includeonly>
5924 <td>c</includeonly>
5926 <td>d</includeonly></includeonly>
5932 Template:Includeonly section
5935 ==Includeonly section==
5941 Bug 6563: Edit link generation for section shown by <includeonly>
5943 {{includeonly section}}
5945 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Includeonly_section">Includeonly section</span></h2>
5946 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Section_T-1">Section T-1</span></h2>
5950 # Uses same input as the contents of [[Template:Includeonly section]]
5952 Bug 6563: Section extraction for section shown by <includeonly>
5957 ==Includeonly section==
5965 Bug 6563: Edit link generation for section suppressed by <includeonly>
5968 ==Includeonly section==
5972 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
5977 Bug 6563: Section extraction for section suppressed by <includeonly>
5982 ==Includeonly section==
5990 Un-closed <includeonly>
5997 ### <includeonly> and <noinclude> in attributes
6000 0. includeonly around the entire attribute
6002 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6004 <p><span id="v2">bar</span>
6009 1. includeonly in html attr key
6011 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6013 <p><span id="foo">bar</span>
6018 2. includeonly in html attr value
6020 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6021 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6023 <p><span id="v1">bar</span>
6024 <span id="v1">bar</span>
6029 3. includeonly in part of an attr value
6031 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6033 <p><span style="color:red;">bar</span>
6038 ### Testing parsing of templates where a template arg
6039 ### has the same name as the template itself.
6049 Templates: Template Name/Arg clash: 1. Use of positional param
6058 Templates: Template Name/Arg clash: 2. Use of named param
6067 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6076 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6080 Templates: 1. Simple use
6089 Templates: 2. Inside a block tag
6091 <div>{{echo|Foo}}</div>
6098 Templates: P-wrapping: 1a. Templates on consecutive lines
6109 Templates: P-wrapping: 1b. Templates on consecutive lines
6123 Templates: P-wrapping: 1c. Templates on consecutive lines
6126 {{echo|bar}} <div>baz</div>
6135 Templates: Inline Text: 1. Multiple tmeplate uses
6137 {{echo|Foo}}bar{{echo|baz}}
6144 Templates: Inline Text: 2. Back-to-back template uses
6146 {{echo|Foo}}{{echo|bar}}
6153 Templates: Block Tags: 1. Multiple template uses
6155 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6157 <div>Foo</div><div>bar</div><div>baz</div>
6162 Templates: Block Tags: 2. Back-to-back template uses
6164 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6166 <div>Foo</div><div>bar</div>
6171 Templates: Links: 1. Simple example
6173 {{echo|[[Foo|bar]]}}
6175 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6180 Templates: Links: 2. Generation of link href
6182 [[{{echo|Foo}}|bar]]
6184 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6189 Templates: Links: 3. Generation of part of a link href
6191 [[Fo{{echo|o}}|bar]]
6195 [[Foo{{echo|bar}}baz]]
6197 [[Foo{{echo|bar}}|bar]]
6199 [[:Foo{{echo|bar}}]]
6201 [[:Foo{{echo|bar}}|bar]]
6203 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6204 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6205 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6206 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6207 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6208 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6213 Templates: Links: 4. Multiple templates generating link href
6215 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6217 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6222 Templates: Links: 5. Generation of link text
6224 [[Foo|{{echo|bar}}]]
6226 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6231 Templates: Links: 5. Nested templates (only outermost template should be marked)
6233 {{echo|[[{{echo|Foo}}|bar]]}}
6235 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6240 Templates: HTML Tag: 1. Generation of HTML attr. key
6242 <div {{echo|style}}="color:red;">foo</div>
6244 <div style="color:red;">foo</div>
6249 Templates: HTML Tag: 2. Generation of HTML attr. value
6251 <div style={{echo|'color:red;'}}>foo</div>
6253 <div style="color:red;">foo</div>
6258 Templates: HTML Tag: 3. Generation of HTML attr key and value
6260 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6262 <div style="color:red;">foo</div>
6267 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6269 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6271 <div title="This is a long title with just one piece templated">foo</div>
6276 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6278 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6280 <div title="This is a long title with just one piece templated">foo</div>
6285 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6287 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6289 <div title="This is a long title with just one piece templated">foo</div>
6294 Templates: HTML Tag: 7. Generation of partial attribute key string
6296 <div st{{echo|yle}}="color:red;">foo</div>
6298 <div style="color:red;">foo</div>
6303 Templates: HTML Tables: 1. Generating start of a HTML table
6305 {{echo|<table><tr><td>foo</td>}}</tr></table>
6307 <table><tr><td>foo</td></tr></table>
6312 Templates: HTML Tables: 2a. Generating middle of a HTML table
6314 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6316 <table><tr><td>foo</td></tr></table>
6321 Templates: HTML Tables: 2b. Generating middle of a HTML table
6323 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6325 <table><tr><td>foo</td></tr></table>
6330 Templates: HTML Tables: 3. Generating end of a HTML table
6332 <table><tr>{{echo|<td>foo</td></tr></table>}}
6334 <table><tr><td>foo</td></tr></table>
6339 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6341 {{echo|<table>}}<tr><td>foo</td></tr></table>
6343 <table><tr><td>foo</td></tr></table>
6348 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6350 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6352 <table><tr><td>foo</td></tr></table>
6357 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6359 <table><tr>{{echo|<td>}}foo</td></tr></table>
6361 <table><tr><td>foo</td></tr></table>
6366 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6368 <table><tr><td>foo{{echo|</td>}}</tr></table>
6370 <table><tr><td>foo</td></tr></table>
6375 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6377 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6379 <table><tr><td>foo</td></tr></table>
6384 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6386 <table><tr><td>foo</td></tr>{{echo|</table>}}
6388 <table><tr><td>foo</td></tr></table>
6393 Templates: Wiki Tables: 1a. Fostering of entire template content
6401 <tr><td></td></tr></table>
6406 Templates: Wiki Tables: 1b. Fostering of entire template content
6419 <tr><td></td></tr></table>
6424 Templates: Wiki Tables: 2. Fostering of partial template content
6434 <tr><td></td></tr></table>
6439 Templates: Wiki Tables: 3. td-content via multiple templates
6442 {{echo|{{pipe}}a}}{{echo|b}}
6453 Templates: Wiki Tables: 4. Templated tags, no content
6459 <tr><td></td></tr></table>
6464 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6478 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6492 Templates: Lists: Multi-line list-items via templates
6494 *{{echo|a {{nonexistent|
6496 *{{echo|b {{nonexistent|
6499 <ul><li>a <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
6500 </li><li>b <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
6506 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
6508 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
6510 <p><i>ab</i>c<i>d</i>e
6515 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
6516 (PHP parser generates misnested html)
6520 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
6522 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
6526 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
6527 (PHP parser generates misnested html)
6531 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
6534 <div><i>b</i>c<i>d</i></div>
6539 Templates: Ugly nesting: 4. Divs opened/closed across templates
6541 a<div>b{{echo|c</div>d}}e
6548 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
6554 |{{echo|foo</table>}}
6558 <table about="#mwt1" typeof="mw:Object/Template ">
6559 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
6560 bar</span><span about="#mwt1">
6565 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6575 <td>1. {{echo|foo </table>}}</td>
6577 <td>2. {{echo|baz </table>}}</td>
6590 <table about="#mwt1" typeof="mw:Object/Template">
6595 <td >1. foo </td></tr></tbody></table></td>
6597 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6598 </span><span about="#mwt1">
6600 abc</span><span about="#mwt1">
6601 </span><span about="#mwt1">
6602 </span><span about="#mwt1">
6603 </span><span about="#mwt1">
6604 </span><span about="#mwt1">
6606 xyz</span><span about="#mwt1">
6607 </span><span about="#mwt1">
6612 Templates: Ugly templates: 3. newline-only template parameter
6621 # This looks like a bug: a single newline triggers p/br for some reason.
6623 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6634 Parser Functions: 1. Simple example
6643 Parser Functions: 2. Nested use (only outermost should be marked up)
6652 ### Pre-save transform tests
6655 pre-save transform: subst:
6661 This is a test template
6665 pre-save transform: normal template
6675 pre-save transform: nonexistent template
6679 {{thistemplatedoesnotexist}}
6681 {{thistemplatedoesnotexist}}
6686 pre-save transform: subst magic variables
6695 # This is bug 89, which I fixed. -- wtm
6697 pre-save transform: subst: templates with parameters
6701 {{subst:paramtest|param="something else"}}
6703 This is a test template with parameter "something else"
6709 <nowiki>'''not wiki'''</nowiki>
6713 pre-save transform: nowiki in subst (bug 1188)
6717 {{subst:nowikitest}}
6719 <nowiki>'''not wiki'''</nowiki>
6724 Template:commenttest
6726 This template has <!-- a comment --> in it.
6730 pre-save transform: comment in subst (bug 1936)
6734 {{subst:commenttest}}
6736 This template has <!-- a comment --> in it.
6740 pre-save transform: unclosed tag
6744 <nowiki>'''not wiki'''
6746 <nowiki>'''not wiki'''
6750 pre-save transform: mixed tag case
6754 <NOwiki>'''not wiki'''</noWIKI>
6756 <NOwiki>'''not wiki'''</noWIKI>
6760 pre-save transform: unclosed comment in <nowiki>
6764 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6766 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6772 <span onmouseover="alert('crap')">Oh no</span>
6776 (confirming safety of fix for subst bug 1936)
6778 {{Template:dangerous}}
6780 <p><span>Oh no</span>
6785 pre-save transform: comment containing gallery (bug 5024)
6789 <!-- <gallery>data</gallery> -->
6791 <!-- <gallery>data</gallery> -->
6795 pre-save transform: comment containing extension
6799 <!-- <tag>data</tag> -->
6801 <!-- <tag>data</tag> -->
6805 pre-save transform: comment containing nowiki
6809 <!-- <nowiki>data</nowiki> -->
6811 <!-- <nowiki>data</nowiki> -->
6815 pre-save transform: <noinclude> in subst (bug 3298)
6825 pre-save transform: <onlyinclude> in subst (bug 3298)
6837 {{<includeonly>subst:</includeonly>Includes}}
6841 Template:SafeSubstTest
6843 {{<includeonly>safesubst:</includeonly>Includes}}
6847 bug 22297: safesubst: works during PST
6851 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6857 bug 22297: safesubst: works during normal parse
6866 subst: does not work during normal parse
6870 <p>{{subst:Includes}}
6875 pre-save transform: context links ("pipe trick")
6879 [[Article (context)|]]
6882 [[Bar:Article (context)|]]
6883 [[:Bar:Article (context)|]]
6885 [[|Article (context)]]
6889 [[Article (context)|Article]]
6890 [[Bar:Article|Article]]
6891 [[:Bar:Article|Article]]
6892 [[Bar:Article (context)|Article]]
6893 [[:Bar:Article (context)|Article]]
6895 [[Article (context)]]
6896 [[Bar:X (Y) Z|X (Y) Z]]
6897 [[:Bar:X (Y) Z|X (Y) Z]]
6901 pre-save transform: context links ("pipe trick") with interwiki prefix
6905 [[interwiki:Article|]]
6906 [[:interwiki:Article|]]
6907 [[interwiki:Bar:Article|]]
6908 [[:interwiki:Bar:Article|]]
6910 [[interwiki:Article|Article]]
6911 [[:interwiki:Article|Article]]
6912 [[interwiki:Bar:Article|Bar:Article]]
6913 [[:interwiki:Bar:Article|Bar:Article]]
6917 pre-save transform: context links ("pipe trick") with parens in title
6919 pst title=[[Somearticle (context)]]
6923 [[Article (context)|Article]]
6927 pre-save transform: context links ("pipe trick") with comma in title
6929 pst title=[[Someplace, Somewhere]]
6932 [[Otherplace, Elsewhere|]]
6933 [[Otherplace, Elsewhere, Anywhere|]]
6935 [[Otherplace, Somewhere|Otherplace]]
6936 [[Otherplace, Elsewhere|Otherplace]]
6937 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6941 pre-save transform: context links ("pipe trick") with parens and comma
6943 pst title=[[Someplace (IGNORED), Somewhere]]
6946 [[Otherplace (place), Elsewhere|]]
6948 [[Otherplace, Somewhere|Otherplace]]
6949 [[Otherplace (place), Elsewhere|Otherplace]]
6953 pre-save transform: context links ("pipe trick") with comma and parens
6955 pst title=[[Who, me? (context)]]
6958 [[Me, Myself, and I (1937 song)|]]
6960 [[Yes, you. (context)|Yes, you.]]
6961 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6965 pre-save transform: context links ("pipe trick") with namespace
6967 pst title=[[Ns:Somearticle]]
6971 [[Ns:Article|Article]]
6975 pre-save transform: context links ("pipe trick") with namespace and parens
6977 pst title=[[Ns:Somearticle (context)]]
6981 [[Ns:Article (context)|Article]]
6985 pre-save transform: context links ("pipe trick") with namespace and comma
6987 pst title=[[Ns:Somearticle, Context, Whatever]]
6991 [[Ns:Article, Context, Whatever|Article]]
6995 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6997 pst title=[[Ns:Somearticle, Context (context)]]
7001 [[Ns:Article (context)|Article]]
7005 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7007 pst title=[[Ns:Somearticle (IGNORED), Context]]
7011 [[Ns:Article, Context|Article]]
7015 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7019 [[Article(context)|]]
7020 [[Bar:Article(context)|]]
7021 [[:Bar:Article(context)|]]
7022 [[|Article(context)]]
7026 [[Article(context)|Article]]
7027 [[Bar:Article(context)|Article]]
7028 [[:Bar:Article(context)|Article]]
7029 [[Article(context)]]
7031 [[:Bar:X(Y)Z|X(Y)Z]]
7035 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7039 [[Article (context)|]]
7040 [[Bar:Article (context)|]]
7041 [[:Bar:Article (context)|]]
7042 [[|Article (context)]]
7046 [[Article (context)|Article]]
7047 [[Bar:Article (context)|Article]]
7048 [[:Bar:Article (context)|Article]]
7049 [[Article (context)]]
7050 [[Bar:X (Y) Z|X (Y) Z]]
7051 [[:Bar:X (Y) Z|X (Y) Z]]
7055 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7059 [[Article(context)|]]
7060 [[Bar:Article(context)|]]
7061 [[:Bar:Article(context)|]]
7062 [[|Article(context)]]
7066 [[Article(context)|Article]]
7067 [[Bar:Article(context)|Article]]
7068 [[:Bar:Article(context)|Article]]
7069 [[Article(context)]]
7071 [[:Bar:X(Y)Z|X(Y)Z]]
7075 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7079 [[Article (context), context|]]
7080 [[Article (context),context|]]
7081 [[Bar:Article (context), context|]]
7082 [[Bar:Article (context),context|]]
7083 [[:Bar:Article (context), context|]]
7084 [[:Bar:Article (context),context|]]
7086 [[Article (context), context|Article]]
7087 [[Article (context),context|Article]]
7088 [[Bar:Article (context), context|Article]]
7089 [[Bar:Article (context),context|Article]]
7090 [[:Bar:Article (context), context|Article]]
7091 [[:Bar:Article (context),context|Article]]
7095 pre-save transform: trim trailing empty lines
7099 Empty lines are trimmed
7105 Empty lines are trimmed
7109 pre-save transform: Signature expansion
7114 * <noinclude>~~~</noinclude>
7115 * <includeonly>~~~</includeonly>
7116 * <onlyinclude>~~~</onlyinclude>
7118 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7119 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7120 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7121 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7126 pre-save transform: Signature expansion in nowiki tags (bug 93)
7132 <nowiki>~~~~</nowiki>
7134 <includeonly><nowiki>~~~~</nowiki></includeonly>
7136 <noinclude><nowiki>~~~~</nowiki></noinclude>
7138 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7140 {{subst:Foo}} shall be converted to FOO
7142 As well as inside noinclude/onlyinclude
7143 <noinclude>{{subst:Foo}}</noinclude>
7144 <onlyinclude>{{subst:Foo}}</onlyinclude>
7146 But not inside includeonly
7147 <includeonly>{{subst:Foo}}</includeonly>
7151 <nowiki>~~~~</nowiki>
7153 <includeonly><nowiki>~~~~</nowiki></includeonly>
7155 <noinclude><nowiki>~~~~</nowiki></noinclude>
7157 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7159 FOO shall be converted to FOO
7161 As well as inside noinclude/onlyinclude
7162 <noinclude>FOO</noinclude>
7163 <onlyinclude>FOO</onlyinclude>
7165 But not inside includeonly
7166 <includeonly>{{subst:Foo}}</includeonly>
7170 ### Message transform tests
7173 message transform: magic variables
7183 message transform: should not transform wiki markup
7193 message transform: <noinclude> in transcluded template (bug 4926)
7203 message transform: <onlyinclude> in transcluded template (bug 4926)
7213 {{#special:}} page name, known
7217 {{#special:Recentchanges}}
7219 Special:RecentChanges
7223 {{#special:}} page name with subpage, known
7227 {{#special:Recentchanges/param}}
7229 Special:RecentChanges/param
7233 {{#special:}} page name, unknown
7237 {{#special:foobarnonexistent}}
7239 No such special page
7243 {{#speciale:}} page name, known
7247 {{#speciale:Recentchanges}}
7249 Special:RecentChanges
7253 {{#speciale:}} page name with subpage, known
7257 {{#speciale:Recentchanges/param}}
7259 Special:RecentChanges/param
7263 {{#speciale:}} page name, unknown
7267 {{#speciale:foobarnonexistent}}
7269 No_such_special_page
7278 [[Image:foobar.jpg]]
7280 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7287 [[Image:foobar.jpg|right]]
7289 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7294 Simple image (using File: namespace, now canonical)
7298 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7305 [[Image:foobar.jpg|right|Caption text]]
7307 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7312 Image with empty attribute
7314 [[Image:foobar.jpg|right||Caption text]]
7316 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7321 Image with link tails
7323 123[[Image:foobar.jpg]]456
7324 123[[Image:foobar.jpg|right]]456
7325 123[[Image:foobar.jpg|thumb]]456
7327 <p>123<a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>456
7329 123<div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>456
7330 123<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>456
7335 Image with multiple captions -- only last one is accepted
7337 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7339 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption3 - accepted"><img alt="Caption3 - accepted" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7344 Image with width attribute at different positions
7346 [[Image:foobar.jpg|200px|right|Caption]]
7347 [[Image:foobar.jpg|right|200px|Caption]]
7348 [[Image:foobar.jpg|right|Caption|200px]]
7350 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
7351 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
7352 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
7357 Image with link parameter, wiki target
7359 [[Image:foobar.jpg|link=Target page]]
7361 <p><a href="/wiki/Target_page" title="Target page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7366 Image with link parameter, URL target
7368 [[Image:foobar.jpg|link=http://example.com/]]
7370 <p><a href="http://example.com/" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7375 Image with link parameter, wgExternalLinkTarget
7377 [[Image:foobar.jpg|link=http://example.com/]]
7379 wgExternalLinkTarget='foobar'
7381 <p><a href="http://example.com/" target="foobar" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7386 Image with link parameter, wgNoFollowLinks set to false
7388 [[Image:foobar.jpg|link=http://example.com/]]
7390 wgNoFollowLinks=false
7392 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7397 Image with link parameter, wgNoFollowDomainExceptions
7399 [[Image:foobar.jpg|link=http://example.com/]]
7401 wgNoFollowDomainExceptions='example.com'
7403 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7408 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7410 [[Image:foobar.jpg|link=http://example.com/|Title]]
7412 wgExternalLinkTarget='foobar'
7414 <p><a href="http://example.com/" title="Title" target="foobar" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7419 Image with empty link parameter
7421 [[Image:foobar.jpg|link=]]
7423 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7428 Image with link parameter (wiki target) and unnamed parameter
7430 [[Image:foobar.jpg|link=Target page|Title]]
7432 <p><a href="/wiki/Target_page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7437 Image with link parameter (URL target) and unnamed parameter
7439 [[Image:foobar.jpg|link=http://example.com/|Title]]
7441 <p><a href="http://example.com/" title="Title" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7446 Thumbnail image with link parameter
7450 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7452 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7457 Manually-specified thumbnail image
7461 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7463 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/File:Foobar.jpg"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7468 Manually-specified thumbnail image with explicit link to wiki page
7472 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7474 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7479 Manually-specified thumbnail image with explicit link to url
7483 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7485 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="http://example.com"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7490 Manually-specified thumbnail image with explicit no link
7494 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
7496 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7501 Manually-specified thumbnail image with explicit link and alt text
7505 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
7507 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="alttext" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7512 Image with frame and link
7514 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
7516 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
7521 Image with frame and link and explicit alt
7523 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
7525 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Altitude" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
7530 Image with wiki markup in implicit alt
7532 [[Image:Foobar.jpg|testing '''bold''' in alt]]
7534 <p><a href="/wiki/File:Foobar.jpg" class="image" title="testing bold in alt"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7539 Image with wiki markup in explicit alt
7541 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
7543 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7548 Link to image page- image page normally doesn't exists, hence edit link
7549 Add test with existing image page
7550 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
7554 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
7559 bug 18784 Link to non-existent image page with caption should use caption as link text
7561 [[:Image:test|caption]]
7563 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
7568 Frameless image caption with a free URL
7570 [[Image:foobar.jpg|http://example.com]]
7572 <p><a href="/wiki/File:Foobar.jpg" class="image" title="http://example.com"><img alt="http://example.com" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7577 Thumbnail image caption with a free URL
7579 [[Image:foobar.jpg|thumb|http://example.com]]
7581 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
7586 Thumbnail image caption with a free URL and explicit alt
7588 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
7590 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
7595 BUG 1887: A ISBN with a thumbnail
7597 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
7599 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
7604 BUG 1887: A RFC with a thumbnail
7606 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7608 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
7613 BUG 1887: A mailto link with a thumbnail
7615 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7617 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
7621 # Pending resolution to bug 368
7623 BUG 648: Frameless image caption with a link
7625 [[Image:foobar.jpg|text with a [[link]] in it]]
7627 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7632 BUG 648: Frameless image caption with a link (suffix)
7634 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7636 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a linkfoo in it"><img alt="text with a linkfoo in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7641 BUG 648: Frameless image caption with an interwiki link
7643 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7645 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a MeatBall:Link in it"><img alt="text with a MeatBall:Link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7650 BUG 648: Frameless image caption with a piped interwiki link
7652 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7654 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7659 Escape HTML special chars in image alt text
7661 [[Image:foobar.jpg|& < > "]]
7663 <p><a href="/wiki/File:Foobar.jpg" class="image" title="& < > ""><img alt="& < > "" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7668 BUG 499: Alt text should have Ӓ, not &1234;
7670 [[Image:foobar.jpg|♀]]
7672 <p><a href="/wiki/File:Foobar.jpg" class="image" title="♀"><img alt="♀" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7677 Broken image caption with link
7679 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7681 <p>[[Image:Foobar.jpg|thumb|This is a broken caption. But <a href="/wiki/Main_Page" title="Main Page">this</a> is just an ordinary link.
7686 Image caption containing another image
7688 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7690 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="File:Icon.png">image</a> inside it!</div></div></div>
7695 Image caption containing a newline
7697 [[Image:Foobar.jpg|This
7700 <p><a href="/wiki/File:Foobar.jpg" class="image" title="This *is some text"><img alt="This *is some text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7705 Parsoid: Image caption containing leading space
7706 (The leading space should not trigger nowiki escaping in wt2wt mode)
7708 [[Image:Foobar.jpg|thumb| bar]]
7710 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>bar</div></div></div>
7715 Bug 3090: External links other than http: in image captions
7717 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7719 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a rel="nofollow" class="external text" href="irc://example.net">irc</a> and <a rel="nofollow" class="external text" href="https://example.com">Secure</a> ext links in it.</div></div></div>
7726 [[Image:foobar.jpg|a|class=b]]
7728 <p><a href="/wiki/File:Foobar.jpg" class="image" title="a"><img alt="a" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="b" /></a>
7733 Localized image handling (1).
7737 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7739 <div class="floatleft"><a href="/wiki/Foo" title="caption"><img alt="caption" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7744 Localized image handling (2).
7748 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7750 <div class="thumb tleft"><div class="thumbinner" style="width:182px;"><a href="/wiki/Foo" title="Foo"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/Archivo:Foobar.jpg" class="internal" title="Aumentar"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
7755 "border", "frameless" and "class" attributes on an image.
7757 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7759 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="extra thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a>
7766 #REDIRECT [[File:Barfoo.jpg]]
7772 [[Image:Barfoo.jpg]]
7774 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7779 Missing image with uploads disabled
7783 [[Image:Foobaz.jpg]]
7785 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7794 Subpage test/subpage
7802 subpage title=[[Subpage test]]
7806 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7811 Subpage noslash link
7813 subpage title=[[Subpage test]]
7817 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7826 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7831 BUG 561: {{/Subpage}}
7833 subpage title=[[Page]]
7837 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7845 Category:MediaWiki User's Guide
7853 [[:Category:MediaWiki User's Guide]]
7855 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7864 [[Category:MediaWiki User's Guide]]
7866 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7870 PAGESINCATEGORY invalid title fatal (r33546 fix)
7872 {{PAGESINCATEGORY:<bogus>}}
7879 Category with different sort key
7883 [[Category:MediaWiki User's Guide|Foo]]
7885 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7889 Category with identical sort key
7893 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7895 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7899 Category with empty sort key
7904 [[Category:MediaWiki User's Guide|]]
7906 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7910 Category with empty sort key and parentheses
7915 [[Category:Foo (bar)|]]
7917 [[Category:Foo (bar)|Foo]]
7921 Category with link tail
7926 123[[Category:Foo]]456
7928 123[[Category:Foo]]456
7932 Category with template
7937 [[Category:{{echo|Foo}}]]
7939 [[Category:{{echo|Foo}}]]
7943 Category with template in sort key
7948 [[Category:Foo|{{echo|Bar}}]]
7950 [[Category:Foo|{{echo|Bar}}]]
7954 Category with template in sort key and title
7959 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7961 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7965 Category / paragraph interactions
7967 Foo [[Category:Baz]] Bar
7969 Foo [[Category:Baz]]
7977 [[Category:Baz]] Bar
7990 {{echo|[[Category:Baz]]}}
8005 ### Inter-language links
8008 Inter-language links
8014 [[zh:食品]]
8016 es:Alimento fr:Nourriture zh:食品
8020 Duplicate interlanguage links (bug 24502)
8036 Basic section headings
8043 ===Smaller headline===
8046 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1">Headline 1</span></h2>
8049 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2">Headline 2</span></h2>
8052 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span> <span class="mw-headline" id="Smaller_headline">Smaller headline</span></h3>
8058 Section headings with TOC
8061 === Subheadline 1 ===
8062 ===== Skipping a level =====
8063 ====== Skipping a level ======
8067 ===Another headline===
8069 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8071 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8073 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8075 <li class="toclevel-3 tocsection-3"><a href="#Skipping_a_level"><span class="tocnumber">1.1.1</span> <span class="toctext">Skipping a level</span></a>
8077 <li class="toclevel-4 tocsection-4"><a href="#Skipping_a_level_2"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Skipping a level</span></a></li>
8084 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8086 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8091 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1">Headline 1</span></h2>
8092 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span> <span class="mw-headline" id="Subheadline_1">Subheadline 1</span></h3>
8093 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level">Skipping a level</span></h5>
8094 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level_2">Skipping a level</span></h6>
8095 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2">Headline 2</span></h2>
8098 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span> <span class="mw-headline" id="Another_headline">Another headline</span></h3>
8102 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8104 Handling of sections up to level 6 and beyond
8107 == Level 2 Heading==
8108 === Level 3 Heading===
8109 ==== Level 4 Heading====
8110 ===== Level 5 Heading=====
8111 ====== Level 6 Heading======
8112 ======= Level 7 Heading=======
8113 ======== Level 8 Heading========
8114 ========= Level 9 Heading=========
8115 ========== Level 10 Heading==========
8117 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8119 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8121 <li class="toclevel-2 tocsection-2"><a href="#Level_2_Heading"><span class="tocnumber">1.1</span> <span class="toctext">Level 2 Heading</span></a>
8123 <li class="toclevel-3 tocsection-3"><a href="#Level_3_Heading"><span class="tocnumber">1.1.1</span> <span class="toctext">Level 3 Heading</span></a>
8125 <li class="toclevel-4 tocsection-4"><a href="#Level_4_Heading"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Level 4 Heading</span></a>
8127 <li class="toclevel-5 tocsection-5"><a href="#Level_5_Heading"><span class="tocnumber">1.1.1.1.1</span> <span class="toctext">Level 5 Heading</span></a>
8129 <li class="toclevel-6 tocsection-6"><a href="#Level_6_Heading"><span class="tocnumber">1.1.1.1.1.1</span> <span class="toctext">Level 6 Heading</span></a></li>
8130 <li class="toclevel-6 tocsection-7"><a href="#.3D_Level_7_Heading.3D"><span class="tocnumber">1.1.1.1.1.2</span> <span class="toctext">= Level 7 Heading=</span></a></li>
8131 <li class="toclevel-6 tocsection-8"><a href="#.3D.3D_Level_8_Heading.3D.3D"><span class="tocnumber">1.1.1.1.1.3</span> <span class="toctext">== Level 8 Heading==</span></a></li>
8132 <li class="toclevel-6 tocsection-9"><a href="#.3D.3D.3D_Level_9_Heading.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.4</span> <span class="toctext">=== Level 9 Heading===</span></a></li>
8133 <li class="toclevel-6 tocsection-10"><a href="#.3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.5</span> <span class="toctext">==== Level 10 Heading====</span></a></li>
8146 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span> <span class="mw-headline" id="Level_1_Heading">Level 1 Heading</span></h1>
8147 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span> <span class="mw-headline" id="Level_2_Heading">Level 2 Heading</span></h2>
8148 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span> <span class="mw-headline" id="Level_3_Heading">Level 3 Heading</span></h3>
8149 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span> <span class="mw-headline" id="Level_4_Heading">Level 4 Heading</span></h4>
8150 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span> <span class="mw-headline" id="Level_5_Heading">Level 5 Heading</span></h5>
8151 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span> <span class="mw-headline" id="Level_6_Heading">Level 6 Heading</span></h6>
8152 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span> <span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span></h6>
8153 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span> <span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span></h6>
8154 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span></h6>
8155 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span></h6>
8160 TOC regression (bug 9764)
8164 ==== title 1.1.1 ====
8169 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8171 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8173 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a>
8175 <li class="toclevel-3 tocsection-3"><a href="#title_1.1.1"><span class="tocnumber">1.1.1</span> <span class="toctext">title 1.1.1</span></a></li>
8178 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
8181 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8183 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
8188 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1">title 1</span></h2>
8189 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1">title 1.1</span></h3>
8190 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1">title 1.1.1</span></h4>
8191 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2">title 1.2</span></h3>
8192 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2">title 2</span></h2>
8193 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1">title 2.1</span></h3>
8198 TOC with wgMaxTocLevel=3 (bug 6204)
8204 ==== title 1.1.1 ====
8209 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8211 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8213 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
8214 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
8217 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8219 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
8224 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1">title 1</span></h2>
8225 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1">title 1.1</span></h3>
8226 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1">title 1.1.1</span></h4>
8227 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2">title 1.2</span></h3>
8228 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2">title 2</span></h2>
8229 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1">title 2.1</span></h3>
8234 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
8240 ====Section 1.1.1====
8241 ====Section 1.1.1.1====
8244 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8246 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
8248 <li class="toclevel-2 tocsection-2"><a href="#Section_1.1"><span class="tocnumber">1.1</span> <span class="toctext">Section 1.1</span></a></li>
8251 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
8254 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
8255 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1">Section 1.1</span></h3>
8256 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span></h4>
8257 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span></h4>
8258 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
8264 Resolving duplicate section names
8269 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar">Foo bar</span></h2>
8270 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar_2">Foo bar</span></h2>
8275 Resolving duplicate section names with differing case (bug 10721)
8280 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar">Foo bar</span></h2>
8281 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2">Foo Bar</span></h2>
8293 Template with sections, __NOTOC__
8300 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span> <span class="mw-headline" id="Section_0">Section 0</span></h2>
8301 <h3><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h3>
8302 <h2><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
8303 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span> <span class="mw-headline" id="Section_4">Section 4</span></h2>
8308 __NOEDITSECTION__ keyword
8314 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
8315 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
8320 Link inside a section heading
8322 ==Section with a [[Main Page|link]] in it==
8324 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span> <span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span></h2>
8329 TOC regression (bug 12077)
8336 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8338 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8340 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
8343 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
8346 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1">title 1</span></h2>
8347 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1">title 1.1</span></h3>
8348 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2">title 2</span></h2>
8353 BUG 1219 URL next to image (good)
8355 http://example.com [[Image:foobar.jpg]]
8357 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8362 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
8365 The line above must have a trailing space!
8368 But just in case it doesn't...
8370 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D">=</span></h1>
8371 <p>The line above must have a trailing space!
8373 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D_2">=</span></h1>
8374 <p>But just in case it doesn't...
8379 Header with special characters (bug 25462)
8381 The tooltips shall not show entities to the user (ie. be double escaped)
8398 <p>The tooltips shall not show entities to the user (ie. be double escaped)
8400 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8402 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
8403 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
8404 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
8405 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
8406 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
8409 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span> <span class="mw-headline" id="text_.3E_text">text > text</span></h2>
8412 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a>]</span> <span class="mw-headline" id="text_.3C_text">text < text</span></h2>
8415 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a>]</span> <span class="mw-headline" id="text_.26_text">text & text</span></h2>
8418 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a>]</span> <span class="mw-headline" id="text_.27_text">text ' text</span></h2>
8421 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a>]</span> <span class="mw-headline" id="text_.22_text">text " text</span></h2>
8427 Headers with excess '=' characters
8428 (Are similar tests necessary beyond the 1st level?)
8432 =''italic'' heading==
8433 ==''italic'' heading=
8435 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8437 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
8438 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
8439 <li class="toclevel-1 tocsection-3"><a href="#italic_heading.3D"><span class="tocnumber">3</span> <span class="toctext"><i>italic</i> heading=</span></a></li>
8440 <li class="toclevel-1 tocsection-4"><a href="#.3Ditalic_heading"><span class="tocnumber">4</span> <span class="toctext">=<i>italic</i> heading</span></a></li>
8443 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: foo=">edit</a>]</span> <span class="mw-headline" id="foo.3D">foo=</span></h1>
8444 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =foo">edit</a>]</span> <span class="mw-headline" id=".3Dfoo">=foo</span></h1>
8445 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: italic heading=">edit</a>]</span> <span class="mw-headline" id="italic_heading.3D"><i>italic</i> heading=</span></h1>
8446 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: =italic heading">edit</a>]</span> <span class="mw-headline" id=".3Ditalic_heading">=<i>italic</i> heading</span></h1>
8451 HTML headers vs TOC (bug 23393)
8452 (__NOEDITSECTION__ for clearer output, doesn't matter here)
8464 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8466 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
8468 <li class="toclevel-2 tocsection-1"><a href="#Header_1.1"><span class="tocnumber">1.1</span> <span class="toctext">Header 1.1</span></a></li>
8469 <li class="toclevel-2 tocsection-2"><a href="#Header_1.2"><span class="tocnumber">1.2</span> <span class="toctext">Header 1.2</span></a></li>
8472 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
8474 <li class="toclevel-2 tocsection-3"><a href="#Header_2.1"><span class="tocnumber">2.1</span> <span class="toctext">Header 2.1</span></a></li>
8475 <li class="toclevel-2 tocsection-4"><a href="#Header_2.2"><span class="tocnumber">2.2</span> <span class="toctext">Header 2.2</span></a></li>
8480 <h1> <span class="mw-headline" id="Header_1">Header 1</span></h1>
8481 <h2> <span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
8482 <h2> <span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
8483 <h1> <span class="mw-headline" id="Header_2">Header 2</span></h1>
8484 <h2> <span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
8485 <h2> <span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
8490 BUG 1219 URL next to image (broken)
8492 http://example.com[[Image:foobar.jpg]]
8494 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8499 Bug 1186 news: in the middle of text
8501 http://en.wikinews.org/wiki/Wikinews:Workplace
8503 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
8509 Namespaced link must have a title
8518 Namespaced link must have a title (bad fragment version)
8520 [[Project:#fragment]]
8522 <p>[[Project:#fragment]]
8528 ### HTML tags and HTML attributes
8532 div with no attributes
8534 <div>HTML rocks</div>
8536 <div>HTML rocks</div>
8541 div with double-quoted attribute
8543 <div id="rock">HTML rocks</div>
8545 <div id="rock">HTML rocks</div>
8550 div with single-quoted attribute
8552 <div id='rock'>HTML rocks</div>
8554 <div id="rock">HTML rocks</div>
8559 div with unquoted attribute
8561 <div id=rock>HTML rocks</div>
8563 <div id="rock">HTML rocks</div>
8568 div with illegal double attributes
8570 <div id="a" id="b">HTML rocks</div>
8572 <div id="b">HTML rocks</div>
8576 # FIXME: produce empty string instead of "class" in the PHP parser, following
8579 div with empty attribute value, space before equals
8583 <div class =>HTML rocks</div>
8585 <div class="">HTML rocks</div>
8589 # The PHP parser escapes the opening brace to { for some reason, so
8590 # disabled this test for it.
8592 div with braces in attribute value
8596 <div title="{}">Foo</div>
8598 <div title="{}">Foo</div>
8601 # This it very inconsistent in the PHP parser: it returns
8602 # class="class" if there is a space between the name and the equal sign (see
8603 # 'div with empty attribute value, space before equals'), but strips the
8604 # attribute completely if the space is missing. We hope that not much content
8605 # depends on this, so are implementing the behavior below in Parsoid for
8606 # consistencies' sake. Disabled for the PHP parser.
8607 # FIXME: fix this behavior in the PHP parser?
8609 div with empty attribute value, no space before equals
8613 <div class=>HTML rocks</div>
8615 <div class="">HTML rocks</div>
8620 HTML multiple attributes correction
8622 <p class="error" class="awesome">Awesome!</p>
8624 <p class="awesome">Awesome!</p>
8629 Table multiple attributes correction
8632 !+ class="error" class="awesome"| status
8637 <th class="awesome"> status
8645 <DIV ID="x">HTML ROCKS</DIV>
8647 <div id="x">HTML ROCKS</div>
8652 Non-ASCII pseudo-tags are rendered as text
8661 Pseudo-tag with URL 'name' renders as url link
8663 <http://example.com/>
8665 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
8670 text with amp in the middle of nowhere
8674 <p>Remember AT&T?
8679 text with character entity: eacute
8681 I always thought é was a cute letter.
8683 <p>I always thought é was a cute letter.
8688 text with entity-escaped character entity-like string: eacute
8690 I always thought &eacute; was a cute letter.
8692 <p>I always thought &eacute; was a cute letter.
8697 text with undefined character entity: xacute
8699 I always thought &xacute; was a cute letter.
8701 <p>I always thought &xacute; was a cute letter.
8713 [[Media:Foobar.jpg]]
8715 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
8720 Media link with text
8722 [[Media:Foobar.jpg|A neat file to look at]]
8724 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
8728 # FIXME: this is still bad HTML tag nesting
8730 Media link with nasty text
8731 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8733 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8735 <a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Safe Link<div style="display:none">" onmouseover="alert(document.cookie)" onfoo="</div></a>
8740 Media link to nonexistent file (bug 1702)
8742 [[Media:No such.jpg]]
8744 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8749 Image link to nonexistent file (bug 1850 - good)
8751 [[Image:No such.jpg]]
8753 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8758 :Image link to nonexistent file (bug 1850 - bad)
8760 [[:Image:No such.jpg]]
8762 <p><a href="/index.php?title=File:No_such.jpg&action=edit&redlink=1" class="new" title="File:No such.jpg (page does not exist)">Image:No such.jpg</a>
8769 Character reference normalization in link text (bug 1938)
8771 [[Main Page|this&that]]
8773 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8780 Test for unicode normalization
8782 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8786 (bug 19451) Links should refer to the normalized form.
8794 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8795 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8796 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8797 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8798 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8803 Empty attribute crash test (bug 2067)
8805 <font color="">foo</font>
8807 <p><font color="">foo</font>
8812 Empty attribute crash test single-quotes (bug 2067)
8814 <font color=''>foo</font>
8816 <p><font color="">foo</font>
8821 Attribute test: equals, then nothing
8823 <font color=>foo</font>
8830 Attribute test: unquoted value
8832 <font color=x>foo</font>
8834 <p><font color="x">foo</font>
8839 Attribute test: unquoted but illegal value (hash)
8841 <font color=#x>foo</font>
8843 <p><font color="#x">foo</font>
8848 Attribute test: no value
8850 <font color>foo</font>
8852 <p><font color="color">foo</font>
8857 Bug 2095: link with three closing brackets
8861 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8866 Bug 2095: link with pipe and three closing brackets
8870 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8875 Bug 2095: link with pipe and three closing brackets, version 2
8877 [[Main Page|[http://example.com/]]]
8879 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8889 Template:Dangerous attribute
8891 " onmouseover="alert(document.cookie)
8895 Template:Dangerous style attribute
8897 border-size: expression(alert(document.cookie))
8903 <div style="float: right; {{{1}}}">Magic div</div>
8907 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8909 <div title="{{test}}"></div>
8911 <div title="This is a test template"></div>
8916 Bug 2304: HTML attribute safety (dangerous template; 2309)
8918 <div title="{{dangerous attribute}}"></div>
8920 <div title=""></div>
8925 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8927 <div style="{{dangerous style attribute}}"></div>
8929 <div style="/* insecure input */"></div>
8934 Bug 2304: HTML attribute safety (safe parameter; 2309)
8936 {{div style|width: 200px}}
8938 <div style="float: right; width: 200px">Magic div</div>
8943 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8945 {{div style|width: expression(alert(document.cookie))}}
8947 <div style="/* insecure input */">Magic div</div>
8952 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8954 {{div style|"><script>alert(document.cookie)</script>}}
8956 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8961 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8963 {{div style|" ><script>alert(document.cookie)</script>}}
8965 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8970 Bug 2304: HTML attribute safety (link)
8972 <div title="[[Main Page]]"></div>
8974 <div title="[[Main Page]]"></div>
8979 Bug 2304: HTML attribute safety (italics)
8981 <div title="''foobar''"></div>
8983 <div title="''foobar''"></div>
8988 Bug 2304: HTML attribute safety (bold)
8990 <div title="'''foobar'''"></div>
8992 <div title="'''foobar'''"></div>
8998 Bug 2304: HTML attribute safety (ISBN)
9000 <div title="ISBN 1234567890"></div>
9002 <div title="ISBN 1234567890"></div>
9007 Bug 2304: HTML attribute safety (RFC)
9009 <div title="RFC 1234"></div>
9011 <div title="RFC 1234"></div>
9016 Bug 2304: HTML attribute safety (PMID)
9018 <div title="PMID 1234567890"></div>
9020 <div title="PMID 1234567890"></div>
9025 Bug 2304: HTML attribute safety (web link)
9027 <div title="http://example.com/"></div>
9029 <div title="http://example.com/"></div>
9034 Bug 2304: HTML attribute safety (named web link)
9036 <div title="[http://example.com/ link]"></div>
9038 <div title="[http://example.com/ link]"></div>
9043 Bug 3244: HTML attribute safety (extension; safe)
9045 <div style="<nowiki>background:blue</nowiki>"></div>
9047 <div style="background:blue"></div>
9052 Bug 3244: HTML attribute safety (extension; unsafe)
9054 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9056 <div style="/* insecure input */"></div>
9060 # More MSIE fun discovered by Tom Gilder
9063 MSIE CSS safety test: spurious slash
9065 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9067 <div style="/* insecure input */">evil</div>
9072 MSIE CSS safety test: hex code
9074 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9076 <div style="/* insecure input */">evil</div>
9081 MSIE CSS safety test: comment in url
9083 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9085 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9090 MSIE CSS safety test: comment in expression
9092 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9094 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9100 Table attribute legitimate extension
9103 !+ style="<nowiki>color:blue</nowiki>"| status
9108 <th style="color:blue"> status
9114 Table attribute safety
9117 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9122 <th style="/* insecure input */"> status
9128 CSS line continuation 1
9130 <div style="background-image: u\ rl(test.jpg);"></div>
9132 <div style="/* insecure input */"></div>
9137 CSS line continuation 2
9139 <div style="background-image: u\ rl(test.jpg); "></div>
9141 <div style="/* insecure input */"></div>
9152 Expansion of multi-line templates in attribute values (bug 6255)
9154 <div style="background: {{identity|#00FF00}}">-</div>
9156 <div style="background: #00FF00">-</div>
9162 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9164 <div style="background:
9167 <div style="background: #00FF00">-</div>
9172 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9174 <div style="background: #00FF00">-</div>
9176 <div style="background: #00FF00">-</div>
9181 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9184 Parser hook: empty input
9197 Parser hook: empty input using terminated empty elements
9210 Parser hook: empty input using terminated empty elements (space before)
9223 Parser hook: basic input
9237 Parser hook: case insensitive
9251 Parser hook: case insensitive, redux
9264 Parser hook: nested tags
9268 <tag><tag></tag></tag>
9279 Parser hook: basic arguments
9281 <tag width=200 height = "100" depth = '50' square></tag>
9289 'square' => 'square',
9296 Parser hook: argument containing a forward slash (bug 5344)
9298 <tag filename='/tmp/bla'></tag>
9303 'filename' => '/tmp/bla',
9310 Parser hook: empty input using terminated empty elements (bug 2374)
9323 # </tag> should be output literally since there is no matching tag that begins it
9325 Parser hook: basic arguments using terminated empty elements (bug 2374)
9327 <tag width=200 height = "100" depth = '50' square/>
9337 'square' => 'square',
9346 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
9350 Parser hook: static parser hook not inside a comment
9352 <statictag>hello, world</statictag>
9353 <statictag action=flush/>
9361 Parser hook: static parser hook inside a comment
9363 <!-- <statictag>hello, world</statictag> -->
9364 <statictag action=flush/>
9370 # Nested template calls; this case was broken by Parser.php rev 1.506,
9374 Template:One-parameter
9376 (My parameter is: {{{1}}})
9380 Template:Map-one-parameter
9386 Nested template calls
9388 {{Map-one-parameter|One-parameter|param}}
9390 <p>(My parameter is: param)
9399 Sanitizer: Closing of open tags
9401 <s></s><table></table>
9403 <s></s><table></table>
9408 Sanitizer: Closing of open but not closed tags
9417 Sanitizer: Closing of closed but not open tags
9426 Sanitizer: Closing of closed but not open table tags
9428 Table not started</td></tr></table>
9430 <p>Table not started</td></tr></table>
9435 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
9437 <span id="æ: v">byte</span>[[#æ: v|backlink]]
9439 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
9444 Sanitizer: Validating the contents of the id attribute (bug 4515)
9450 Something, but definitely not <br id="9" />...
9454 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
9458 <br id="foo" /><br id="foo" />
9460 Something need to be done. foo-2 ?
9464 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
9467 <meta itemprop="hello" content="world">
9468 <meta http-equiv="refresh" content="5">
9469 <meta itemprop="hello" http-equiv="refresh" content="5">
9470 <link itemprop="hello" href="{{SERVER}}">
9471 <link rel="stylesheet" href="{{SERVER}}">
9472 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
9475 <div itemscope="itemscope">
9476 <p> <meta itemprop="hello" content="world" />
9477 <meta http-equiv="refresh" content="5">
9478 <meta itemprop="hello" content="5" />
9480 <link itemprop="hello" href="http://example.org" />
9481 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
9482 <link itemprop="hello" href="http://example.org" />
9488 Language converter: output gets cut off unexpectedly (bug 5757)
9492 this bit is safe: }-
9494 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
9496 then we get cut off here: }-
9498 all additional text is vanished
9500 <p>this bit is safe: }-
9501 </p><p>but if we add a conversion instance: xxx
9502 </p><p>then we get cut off here: }-
9503 </p><p>all additional text is vanished
9508 Self closed html pairs (bug 5487)
9511 <center><font id="bug" />Centered text</center>
9512 <div><font id="bug2" />In div text</div>
9514 <center><font id="bug" />Centered text</center>
9515 <div><font id="bug2" />In div text</div>
9524 Punctuation: nbsp before exclamation
9528 <p>C'est grave !
9533 Punctuation: CSS !important (bug 11874)
9535 <div style="width:50% !important">important</div>
9537 <div style="width:50% !important">important</div>
9542 Punctuation: CSS ! important (bug 11874; with space after)
9544 <div style="width:50% ! important">important</div>
9546 <div style="width:50% ! important">important</div>
9552 HTML bullet list, closed tags (bug 5497)
9567 HTML bullet list, unclosed tags (bug 5497)
9584 HTML ordered list, closed tags (bug 5497)
9599 HTML ordered list, unclosed tags (bug 5497)
9616 HTML nested bullet list, closed tags (bug 5497)
9641 HTML nested bullet list, open tags (bug 5497)
9666 HTML nested ordered list, closed tags (bug 5497)
9691 HTML nested ordered list, open tags (bug 5497)
9716 HTML ordered list item with parameters oddity
9718 <ol><li id="fragment">One</li></ol>
9720 <ol><li id="fragment">One</li></ol>
9725 bug 5918: autonumbering
9727 [http://first/] [http://second] [ftp://ftp]
9731 [mailto:enclosed@mail.tld With target]
9733 [mailto:enclosed@mail.tld]
9735 mailto:inline@mail.tld
9737 <p><a rel="nofollow" class="external autonumber" href="http://first/">[1]</a> <a rel="nofollow" class="external autonumber" href="http://second">[2]</a> <a rel="nofollow" class="external autonumber" href="ftp://ftp">[3]</a>
9738 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9739 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9740 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9741 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9747 # Security and HTML correctness
9748 # From Nick Jenkins' fuzz testing
9752 Fuzz testing: Parser13
9767 Fuzz testing: Parser14
9772 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline" id="onmouseover.3D">onmouseover=</span></h2>
9773 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9775 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9782 Fuzz testing: Parser14-table
9787 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span> <span class="mw-headline" id="a">a</span></h2>
9788 <table style="__TOC__">
9794 # Known to produce bogus xml (extra </td>)
9796 Fuzz testing: Parser16
9816 Fuzz testing: Parser21
9819 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9824 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9834 Fuzz testing: Parser22
9836 http://===r:::https://b
9840 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9848 # Known to produce bad XML for now
9850 Fuzz testing: Parser24
9857 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9858 <br style="onmouseover='alert(document.cookie);' " />
9860 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9865 <u class="|">}}}} >
9866 <br style="onmouseover='alert(document.cookie);'" />
9868 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9877 # Note: the current result listed for this is not what the original one was,
9878 # but the original bug was JavaScript injection, which is fixed in any case.
9879 # It's not clear that the original result listed was any more correct than the
9880 # current one. Original result:
9883 # <li class="||">
9884 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9886 Fuzz testing: Parser25 (bug 6055)
9892 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9894 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9899 Fuzz testing: URL adjacent extension (with space, clean)
9902 http://example.com <nowiki>junk</nowiki>
9904 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9909 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9912 http://example.com<nowiki>junk</nowiki>
9914 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9919 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9922 http://example.com<pre>junk</pre>
9924 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9929 Fuzz testing: image with bogus manual thumbnail
9931 [[Image:foobar.jpg|thumbnail= ]]
9933 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9938 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9940 <pre dir=" "></pre>
9942 <pre dir=" "></pre>
9947 Parsing optional HTML elements (Bug 6171)
9952 <td> Some tabular data</td>
9953 <td> More tabular data ...
9954 <td> And yet som tabular data</td>
9960 <td> Some tabular data</td>
9961 <td> More tabular data ...
9962 </td><td> And yet som tabular data</td>
9969 Correct handling of <td>, <tr> (Bug 6171)
9974 <td> Some tabular data</td>
9975 <td> More tabular data ...</td>
9976 <td> And yet som tabular data</td>
9982 <td> Some tabular data</td>
9983 <td> More tabular data ...</td>
9984 <td> And yet som tabular data</td>
9992 Parsing crashing regression (fr:JavaScript)
9996 <p></body></x>
10001 Inline wiki vs wiki block nesting
10007 <p><b>Bold paragraph</b>
10008 </p><p>New wiki paragraph
10013 Inline HTML vs wiki block nesting
10021 <p><b>Bold paragraph</b>
10022 </p><p>New wiki paragraph
10026 # Original result was this:
10027 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10029 # While that might be marginally more intuitive, maybe, the six-apostrophe
10030 # construct is clearly pathological and the result stated here (which is what
10031 # the parser actually does) is about as reasonable as anything.
10033 Mixing markup for italics and bold
10036 '''bold''''''bold''bolditalics'''''
10038 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10046 Article for special page transclusion test
10050 Special page transclusion
10053 {{Special:Prefixindex/Xyzzyx}}
10055 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10060 Special page transclusion twice (bug 5021)
10063 {{Special:Prefixindex/Xyzzyx}}
10064 {{Special:Prefixindex/Xyzzyx}}
10066 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10067 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10072 Transclusion of default MediaWiki message
10074 {{MediaWiki:Mainpage}}
10081 Transclusion of nonexistent MediaWiki message
10083 {{MediaWiki:Mainpagexxx}}
10085 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10090 Transclusion of MediaWiki message with underscore
10092 {{MediaWiki:history_short}}
10099 Transclusion of MediaWiki message with space
10101 {{MediaWiki:history short}}
10108 Invalid header with following text
10118 Section extraction test (section 0)
10138 Section extraction test (section 1)
10160 Section extraction test (section 2)
10181 Section extraction test (section 3)
10201 Section extraction test (section 4)
10225 Section extraction test (section 5)
10245 Section extraction test (section 6)
10266 Section extraction test (section 7)
10286 Section extraction test (section 8)
10306 Section extraction test (section 9)
10327 Section extraction test (section 10)
10347 Section extraction test (nonexistent section 11)
10366 Section extraction test with bogus heading (section 1)
10371 ==bogus== not a legal section
10375 ==bogus== not a legal section
10379 Section extraction test with bogus heading (section 2)
10384 ==bogus== not a legal section
10391 Section extraction test with comment after heading (section 1)
10403 Section extraction test with comment after heading (section 2)
10415 Section extraction test with bogus <nowiki> heading (section 1)
10420 ==bogus== <nowiki>not a legal section</nowiki>
10424 ==bogus== <nowiki>not a legal section</nowiki>
10428 Section extraction test with bogus <nowiki> heading (section 2)
10433 ==bogus== <nowiki>not a legal section</nowiki>
10440 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
10441 # instead of respecting commented sections
10443 Section extraction prefixed by comment (section 1)
10454 Section extraction prefixed by comment (section 2)
10465 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
10466 # instead of respecting HTML-style headings
10468 Section extraction, mixed wiki and html (section 1)
10484 Section extraction, mixed wiki and html (section 2)
10500 # Formerly testing for bug 3342
10502 Section extraction, heading surrounded by <noinclude>
10506 <noinclude>==unmarked==</noinclude>
10512 # Test behavior of bug 19910
10514 Sectiion with all-equals
10519 The line above must have a trailing space
10522 But just in case it doesn't...
10526 But just in case it doesn't...
10530 Section replacement test (section 0)
10561 Section replacement test (section 1)
10590 Section replacement test (section 2)
10620 Section replacement test (section 3)
10651 Section replacement test (section 4)
10678 Section replacement test (section 5)
10709 Section replacement test (section 6)
10739 Section replacement test (section 7)
10770 Section replacement test (section 8)
10801 Section replacement test (section 9)
10830 Section replacement test (section 10)
10860 Section replacement test with initial whitespace (bug 13728)
10864 Preformatted initial line
10868 Preformatted initial line
10875 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10887 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10900 Section extraction, <pre> around bogus header (bug 10309)
10917 Section replacement, <pre> around bogus header (bug 10309)
10919 noxml replace=2,"xxx"
10940 Handling of 
 in URLs
10944 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10951 5 quotes, code coverage +1 line (php)
10958 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
10960 5 quotes, code coverage +1 line (parsoid)
10966 <p><i><b></b></i></p>
10970 Special:Search page linking.
10974 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10986 * {{ROOTPAGENAMEE}}
10988 * {{BASEPAGENAMEE}}
10990 * {{TALKPAGENAMEE}}
10991 * {{SUBJECTPAGENAME}}
10992 * {{SUBJECTPAGENAMEE}}
10998 * {{SUBJECTSPACEE}}
10999 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11001 <ul><li> Parser test
11002 </li><li> Parser test
11003 </li><li> Parser test
11004 </li><li> Parser_test
11005 </li><li> Parser test
11006 </li><li> Parser_test
11007 </li><li> Parser test
11008 </li><li> Parser_test
11009 </li><li> Talk:Parser test
11010 </li><li> Talk:Parser_test
11011 </li><li> Parser test
11012 </li><li> Parser_test
11019 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
11023 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11033 image4 |300px| centre
11034 image5.svg| http://///////
11039 <ul class="gallery">
11040 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11041 <div style="height: 150px;">Image1.png</div>
11042 <div class="gallerytext">
11045 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11046 <div style="height: 150px;">Image2.gif</div>
11047 <div class="gallerytext">
11052 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11053 <div style="height: 150px;">Image3</div>
11054 <div class="gallerytext">
11057 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11058 <div style="height: 150px;">Image4</div>
11059 <div class="gallerytext">
11064 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11065 <div style="height: 150px;">Image5.svg</div>
11066 <div class="gallerytext">
11067 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11071 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11072 <div style="height: 150px;">* image6</div>
11073 <div class="gallerytext">
11081 Gallery (with options)
11083 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11084 File:Nonexistant.jpg|caption
11085 File:Nonexistant.jpg
11086 image:foobar.jpg|some '''caption''' [[Main Page]]
11088 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11091 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11092 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11093 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11094 <div style="height: 70px;">Nonexistant.jpg</div>
11095 <div class="gallerytext">
11100 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11101 <div style="height: 70px;">Nonexistant.jpg</div>
11102 <div class="gallerytext">
11105 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11106 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
11107 <div class="gallerytext">
11108 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11112 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11113 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
11114 <div class="gallerytext">
11117 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11118 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="This is a foo-bar." src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
11119 <div class="gallerytext">
11129 Gallery with wikitext inside caption
11132 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11133 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11136 <ul class="gallery">
11137 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11138 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11139 <div class="gallerytext">
11140 <p><a href="/wiki/File:Foobar.jpg" class="image" title="desc"><img alt="inneralt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/20px-Foobar.jpg" width="20" height="2" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/30px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/40px-Foobar.jpg 2x" /></a>
11144 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11145 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11146 <div class="gallerytext">
11147 <p>This is a test template
11156 gallery (with showfilename option)
11158 <gallery showfilename>
11159 File:Nonexistant.jpg|caption
11160 File:Nonexistant.jpg
11161 image:foobar.jpg|some '''caption''' [[Main Page]]
11165 <ul class="gallery">
11166 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11167 <div style="height: 150px;">Nonexistant.jpg</div>
11168 <div class="gallerytext">
11169 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11174 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11175 <div style="height: 150px;">Nonexistant.jpg</div>
11176 <div class="gallerytext">
11177 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11181 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11182 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11183 <div class="gallerytext">
11184 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11185 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11189 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11190 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11191 <div class="gallerytext">
11192 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11201 Gallery (with namespace-less filenames)
11204 File:Nonexistant.jpg
11210 <ul class="gallery">
11211 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11212 <div style="height: 150px;">Nonexistant.jpg</div>
11213 <div class="gallerytext">
11216 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11217 <div style="height: 150px;">Nonexistant.jpg</div>
11218 <div class="gallerytext">
11221 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11222 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11223 <div class="gallerytext">
11226 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11227 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11228 <div class="gallerytext">
11236 HTML Hex character encoding (spells the word "JavaScript")
11238 JavaScript
11240 <p>JavaScript
11245 HTML Hex character encoding bogus encoding (bug 26437 regression check)
11249 <p>&#xsee;&#XSEE;
11254 HTML Hex character encoding mixed case
11263 __FORCETOC__ override
11275 ISBN 978-0-1234-56 789
11277 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
11282 ISBN followed by 5 spaces
11293 ISBN ISBN 1234567890
11295 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11300 Bug 22905: <abbr> followed by ISBN followed by </a>
11302 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
11304 <p><abbr>(fr)</abbr> <a href="/wiki/Special:BookSources/2753300917" class="internal mw-magiclink-isbn">ISBN 2753300917</a> <a rel="nofollow" class="external text" href="http://www.example.com">example.com</a>
11313 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
11318 Double RFC with a wiki link
11322 <p>RFC <a href="/index.php?title=RFC_1234&action=edit&redlink=1" class="new" title="RFC 1234 (page does not exist)">RFC 1234</a>
11331 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
11336 Centre-aligned image
11338 [[Image:foobar.jpg|centre]]
11340 <div class="center"><div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div></div>
11347 [[Image:foobar.jpg|none]]
11349 <div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
11354 Width + Height sized image (using px) (height is ignored)
11356 [[Image:foobar.jpg|640x480px]]
11358 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
11363 Width-sized image (using px, no following whitespace)
11365 [[Image:foobar.jpg|640px]]
11367 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
11372 Width-sized image (using px, with following whitespace - test regression from r39467)
11374 [[Image:foobar.jpg|640px ]]
11376 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
11381 Width-sized image (using px, with preceding whitespace - test regression from r39467)
11383 [[Image:foobar.jpg| 640px]]
11385 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
11390 Another italics / bold test
11398 # Note the results may be incorrect, as parserTest output included this:
11399 # XML error: Mismatched tag at byte 6120:
11400 # ...<dd> </dt></dl> </dd...
11408 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
11419 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
11421 Images with the "|" character in the comment
11423 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
11425 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>An <a rel="nofollow" class="external text" href="http://test/?param1=%7Cleft%7C&param2=%7Cx">external</a> URL</div></div></div>
11430 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
11432 <html><script>alert(1);</script></html>
11434 <p><html><script>alert(1);</script></html>
11439 HTML with raw HTML ($wgRawHtml==true)
11443 <html><script>alert(1);</script></html>
11445 <p><script>alert(1);</script>
11450 Parents of subpages, one level up
11452 subpage title=[[Subpage test/L1/L2/L3]]
11456 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">L2</a>
11462 Parents of subpages, one level up, not named
11464 subpage title=[[Subpage test/L1/L2/L3]]
11468 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">Subpage test/L1/L2</a>
11475 Parents of subpages, two levels up
11477 subpage title=[[Subpage test/L1/L2/L3]]
11483 <p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1</a>2
11484 </p><p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1l</a>
11489 Parents of subpages, two levels up, without trailing slash or name.
11491 subpage title=[[Subpage test/L1/L2/L3]]
11500 Parents of subpages, two levels up, with lots of extra trailing slashes.
11502 subpage title=[[Subpage test/L1/L2/L3]]
11506 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
11511 Definition list code coverage
11517 <dl><dt> title  </dt><dd> def
11518 </dd><dt> title </dt><dd> def
11519 </dd><dt>title</dt><dd> def
11525 Don't fall for the self-closing div
11527 <div>hello world</div/>
11529 <div>hello world</div>
11538 <p>[[:Template:Msg]]
11547 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
11551 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
11553 Always escape literal '>' in output, not just after '<'
11567 <p>This is a test template
11568 This is a test template
11580 Inclusion of !userCanEdit() content
11584 <h2><span class="editsection">[<a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span> <span class="mw-headline" id="header">header</span></h2>
11590 Out-of-order TOC heading levels
11599 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11601 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
11603 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
11604 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
11607 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
11609 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
11610 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
11615 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2">2</span></h2>
11616 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline" id="6">6</span></h6>
11617 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3>
11618 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline" id="1">1</span></h1>
11619 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span> <span class="mw-headline" id="5">5</span></h5>
11620 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2_2">2</span></h2>
11626 ISBN with a dummy number
11636 ISBN with space-delimited number
11640 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
11646 ISBN with multiple spaces, no number
11665 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11666 </p><p>ISBN 12345678901
11672 ISBN with trailing year (bug 8110)
11674 ISBN 1-234-56789-0 - 2006
11676 ISBN 1 234 56789 0 - 2006
11678 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
11679 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
11687 {{anchorencode:foo bar©#%n}}
11689 <p>foo_bar.C2.A9.23.25n
11694 anchorencode trims spaces
11696 {{anchorencode: __pretty__please__}}
11703 anchorencode deals with links
11705 {{anchorencode: [[hello|world]] [[hi]]}}
11712 anchorencode deals with templates
11714 {{anchorencode: {{Foo}} }}
11721 anchorencode encodes like the TOC generator: (bug 18431)
11723 === _ +:.3A%3A&&]] ===
11724 {{anchorencode: _ +:.3A%3A&&]] }}
11727 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
11728 <p>.2B:.3A.253A.26.26.5D.5D
11732 # Expected output in the following test is not necessarily expected (there
11733 # should probably be <p> tags inside the <blockquote> in the output) -- it's
11734 # only testing for well-formedness.
11736 Bug 6200: blockquotes and paragraph formatting
11756 Bug 8293: Use of center tag ruins paragraph formatting
11777 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
11781 <span><s>x</span></s>
11783 <p><span><s>x</span></s></span>
11788 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
11792 <span><s>x</span></s>
11794 <p><span><s>x</s></span><s></s>
11799 ### Language variants related tests
11802 Self-link in language variants
11804 title=[[Dunav]] language=sr
11806 Both [[Dunav]] and [[Дунав]] are names for this river.
11808 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11819 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11821 title=[[Duna]] language=sr
11823 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11825 <p><a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Дуна</a> is not a self-link while <strong class="selflink">Duna</strong> and <strong class="selflink">Dуна</strong> are still self-links.
11830 Link to pages in language variants
11834 Main Page can be written as [[Маин Паге]]
11836 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11842 Multiple links to pages in language variants
11846 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11848 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a> can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a> same as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>.
11854 Simple template in language variants
11860 <p>This is a test template
11866 Template with explicit namespace in language variants
11872 <p>This is a test template
11878 Basic test for template parameter in language variants
11882 {{парамтест|param=foo}}
11884 <p>This is a test template with parameter foo
11890 Simple category in language variants
11894 [[Category:МедиаWики Усер'с Гуиде]]
11896 <a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:MediaWiki_User%27s_Guide" title="Категорија:MediaWiki User's Guide">MediaWiki User's Guide</a>
11913 Don't convert blue categorylinks to another variant (bug 33210)
11917 [[A]][[Category:分类]]
11919 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11924 Stripping -{}- tags (language variants)
11928 Latin proverb: -{Ne nuntium necare}-
11930 <p>Latin proverb: Ne nuntium necare
11936 Prevent conversion with -{}- tags (language variants)
11938 language=sr variant=sr-ec
11940 Latinski: -{Ne nuntium necare}-
11942 <p>Латински: Ne nuntium necare
11948 Prevent conversion of text with -{}- tags (language variants)
11950 language=sr variant=sr-ec
11952 Latinski: -{Ne nuntium necare}-
11954 <p>Латински: Ne nuntium necare
11960 Prevent conversion of links with -{}- tags (language variants)
11962 language=sr variant=sr-ec
11966 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11972 -{}- tags within headlines (within html for parserConvert())
11974 language=sr variant=sr-ec
11978 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-">Naslov</span></h2>
11984 Explicit definition of language variant alternatives
11986 language=zh variant=zh-tw
11988 -{zh:China;zh-tw:Taiwan}-, not China
11990 <p>Taiwan, not China
11996 Conversion around HTML tags
11998 language=sr variant=sr-ec
12000 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12001 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12004 <span title="ЛаCтин">ски</span>
12010 Explicit session-wise language variant mapping (A flag and - flag)
12012 language=zh variant=zh-tw
12014 Taiwan is not China.
12015 But -{A|zh:China;zh-tw:Taiwan}- is China,
12016 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12017 and -{China}- is China.
12019 <p>Taiwan is not China.
12020 But Taiwan is Taiwan,
12021 (This should be stripped!)
12022 and China is China.
12027 Explicit session-wise language variant mapping (H flag for hide)
12029 language=zh variant=zh-tw
12031 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12034 <p>(This should be stripped!)
12040 Adding explicit conversion rule for title (T flag)
12042 language=zh variant=zh-tw showtitle
12044 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12047 <p>Should be stripped!
12052 Testing that changing the language variant here in the tests actually works
12054 language=zh variant=zh showtitle
12056 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12059 <p>Should be stripped!
12064 Recursive conversion of alt and title attrs shouldn't clear converter state
12066 language=zh variant=zh-cn showtitle
12068 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12069 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12073 Should be stripped<span title="Exclamation">!</span>
12078 Bug 24072: more test on conversion rule for title
12080 language=zh variant=zh-tw showtitle
12082 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12083 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12086 <p>This should be stripped!
12087 This won't take interferes with the title rule.
12092 Raw output of variant escape tags (R flag)
12094 language=zh variant=zh-tw
12096 Raw: -{R|zh:China;zh-tw:Taiwan}-
12098 <p>Raw: zh:China;zh-tw:Taiwan
12103 Nested using of manual convert syntax
12105 language=zh variant=zh-hk
12107 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12109 <p>Nested: Hello Hong Kong!
12114 Proper conversion of text in external links
12116 language=sr variant=sr-ec
12118 http://www.google.com
12119 gopher://www.google.com
12120 [http://www.google.com http://www.google.com]
12121 [gopher://www.google.com gopher://www.google.com]
12122 [https://www.google.com irc://www.google.com]
12123 [ftp://www.google.com www.google.com/ftp://dir]
12124 [//www.google.com www.google.com]
12126 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12127 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12128 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12129 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12130 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12131 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12132 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12137 Do not convert roman numbers to language variants
12139 language=sr variant=sr-ec
12143 <p>Фридрих IV је цар.
12148 Unclosed language converter markup "-{"
12159 Don't convert raw rule "-{R|=>}-" to "=>"
12176 Bug 529: Uncovered bullet
12186 # Plain MediaWiki does not remove empty lists, but tidy actually does.
12187 # Templates in Wikipedia rely on this behavior, as tidy has always been
12188 # enabled there. These tests are normally run *without* tidy, so specify the
12189 # full output here.
12190 # To test realistic parsing behavior, apply a tidy-like transformation to both
12191 # the expected output and your parser's output.
12193 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
12195 ******* Foo {{bullet}}
12197 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
12210 Bug 529: Uncovered table already at line-start
12233 Bug 529: Uncovered bullet in parser function result
12235 * Foo {{lc:{{bullet}} }}
12244 Bug 5678: Double-parsed template argument
12246 {{lc:{{{1}}}|hello}}
12253 Bug 5678: Double-parsed template invocation
12255 {{lc:{{paramtest {{!}} param = hello }} }}
12257 <p>{{paramtest | param = hello }}
12262 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
12265 title=[[Main Page]]
12267 {{PRVNÍVELKÉ:ěščř}}
12268 {{prvnívelké:ěščř}}
12288 Morwen/13: Unclosed link followed by heading
12295 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
12300 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
12307 <h1> <span class="mw-headline" id="heading">heading</span></h1>
12312 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
12319 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
12334 Paragraphs inside divs (no extra line breaks)
12346 Paragraphs inside divs (extra line break on open)
12361 Paragraphs inside divs (extra line break on close)
12376 Paragraphs inside divs (extra line break on open and close)
12393 Nesting tags, paragraphs on lines which begin with <div>
12397 <div></div><strong>A
12406 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
12408 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
12412 <blockquote>Line one
12414 Line two</blockquote>
12416 <blockquote>Line one
12417 Line two</blockquote>
12422 Bug 6200: paragraphs inside blockquotes (extra line break on open)
12429 Line two</blockquote>
12434 Line two</blockquote>
12439 Bug 6200: paragraphs inside blockquotes (extra line break on close)
12443 <blockquote>Line one
12448 <blockquote>Line one
12456 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
12475 Paragraphs inside blockquotes/divs (no extra line breaks)
12477 <blockquote><div>Line one
12479 Line two</div></blockquote>
12481 <blockquote><div>Line one
12482 Line two</div></blockquote>
12487 Paragraphs inside blockquotes/divs (extra line break on open)
12492 Line two</div></blockquote>
12497 Line two</div></blockquote>
12502 Paragraphs inside blockquotes/divs (extra line break on close)
12504 <blockquote><div>Line one
12507 </div></blockquote>
12509 <blockquote><div>Line one
12512 </div></blockquote>
12517 Paragraphs inside blockquotes/divs (extra line break on open and close)
12523 </div></blockquote>
12529 </div></blockquote>
12534 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
12536 wgLinkHolderBatchSize=0
12542 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
12543 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
12544 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
12549 Free external link invading image caption
12551 [[Image:Foobar.jpg|thumb|http://x|hello]]
12553 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>hello</div></div></div>
12558 Bug 15196: localised external link numbers
12562 [http://en.wikipedia.org/]
12564 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
12569 Multibyte character in padleft
12571 {{padleft:-Hello|7|Æ}}
12578 Multibyte character in padright
12580 {{padright:Hello-|7|Æ}}
12587 formatdate parser function
12589 {{#formatdate:2009-03-24}}
12591 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
12596 formatdate parser function, with default format
12598 {{#formatdate:2009-03-24|mdy}}
12600 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
12605 Spacing of numbers in formatted dates
12607 {{#formatdate:January 15}}
12609 <p><span class="mw-formatted-date" title="01-15">January 15</span>
12614 formatdate parser function, with default format and on a page of which the content language is always English and different from the wiki content language
12616 language=nl title=[[MediaWiki:Common.css]]
12618 {{#formatdate:2009-03-24|dmy}}
12620 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
12633 Edit comment with link
12637 I like the [[Main Page]] a lot
12639 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
12643 Edit comment with link and link text
12647 I like the [[Main Page|best pages]] a lot
12649 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12653 Edit comment with link and link text with suffix
12657 I like the [[Main Page|best page]]s a lot
12659 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12663 Edit comment with section link (non-local, eg in history list)
12665 comment title=[[Main Page]]
12667 /* External links */ removed bogus entries
12669 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12673 Edit comment with section link and text before it (non-local, eg in history list)
12675 comment title=[[Main Page]]
12677 pre-comment text /* External links */ removed bogus entries
12679 pre-comment text - <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12683 Edit comment with section link (local, eg in diff view)
12685 comment local title=[[Main Page]]
12687 /* External links */ removed bogus entries
12689 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12693 Edit comment with subpage link (bug 14080)
12697 title=[[Subpage test]]
12699 Poked at a [[/subpage]] here...
12701 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
12705 Edit comment with subpage link and link text (bug 14080)
12709 title=[[Subpage test]]
12711 Poked at a [[/subpage|neat little page]] here...
12713 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
12717 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
12720 title=[[Subpage test]]
12722 Poked at a [[/subpage]] here...
12724 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
12728 Edit comment with bare anchor link (local, as on diff)
12732 title=[[Main Page]]
12736 <a href="#section">#section</a>
12740 Edit comment with bare anchor link (non-local, as on history)
12743 title=[[Main Page]]
12747 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
12751 Anchor starting with underscore
12755 <p><a href="#_ref">One</a>
12760 Id starting with underscore
12762 <div id="_ref"></div>
12764 <div id="_ref"></div>
12769 Space normalisation on autocomment (bug 22784)
12772 title=[[Main Page]]
12774 /* __hello__world__ */
12776 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12780 percent-encoding and + signs in comments (Bug 26410)
12784 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12786 <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">ABC3D% ++</a> <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">+%20</a>
12790 Bad images - basic functionality
12799 Bad images - bug 16039: text after bad image disappears
12813 Verify that displaytitle works (bug #22501) no displaytitle
12817 wgAllowDisplayTitle=true
12818 wgRestrictDisplayTitle=false
12820 this is not the the title
12823 <p>this is not the the title
12828 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12833 wgAllowDisplayTitle=true
12834 wgRestrictDisplayTitle=false
12836 this is not the the title
12837 {{DISPLAYTITLE:whatever}}
12840 <p>this is not the the title
12845 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12850 wgAllowDisplayTitle=true
12851 wgRestrictDisplayTitle=true
12853 this is not the the title
12854 {{DISPLAYTITLE:whatever}}
12857 <p>this is not the the title
12862 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12867 wgAllowDisplayTitle=true
12868 wgRestrictDisplayTitle=true
12870 this is not the the title
12871 {{DISPLAYTITLE:screen}}
12874 <p>this is not the the title
12879 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12884 wgAllowDisplayTitle=false
12886 this is not the the title
12887 {{DISPLAYTITLE:screen}}
12890 <p>this is not the the title
12891 <a href="/index.php?title=Template:DISPLAYTITLE:screen&action=edit&redlink=1" class="new" title="Template:DISPLAYTITLE:screen (page does not exist)">Template:DISPLAYTITLE:screen</a>
12896 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12901 wgAllowDisplayTitle=false
12903 this is not the the title
12906 <p>this is not the the title
12911 preload: check <noinclude> and <includeonly>
12915 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12921 preload: check <onlyinclude>
12925 Goodbye <onlyinclude>Hello world</onlyinclude>
12931 preload: can pass tags through if we want to
12935 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12937 <includeonly>Hello world</includeonly>
12941 preload: check that it doesn't try to do tricks
12945 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12947 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12951 Play a bit with r67090 and bug 3158
12955 <div style="width:50% !important"> </div>
12956 <div style="width:50% !important"> </div>
12957 <div style="width:50% !important"> </div>
12958 <div style="border : solid;"> </div>
12960 <div style="width:50% !important"> </div>
12961 <div style="width:50% !important"> </div>
12962 <div style="width:50% !important"> </div>
12963 <div style="border : solid;"> </div>
12968 HTML5 data attributes
12970 <span data-foo="bar">Baz</span>
12971 <p data-abc-def_hij="">Quuz</p>
12973 <p><span data-foo="bar">Baz</span>
12975 <p data-abc-def_hij="">Quuz</p>
12980 percent-encoding and + signs in internal links (Bug 26410)
12982 [[User:+%]] [[Page+title%]]
12983 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12984 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12985 [[%33%45]] [[%33%45+]]
12987 <p><a href="/index.php?title=User:%2B%25&action=edit&redlink=1" class="new" title="User:+% (page does not exist)">User:+%</a> <a href="/index.php?title=Page%2Btitle%25&action=edit&redlink=1" class="new" title="Page+title% (page does not exist)">Page+title%</a>
12988 <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%20</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+ </a> <a href="/index.php?title=%25%2Br&action=edit&redlink=1" class="new" title="%+r (page does not exist)">%+r</a>
12989 <a href="/index.php?title=%25&action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="/index.php?title=%2B&action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="/index.php?title=Special:Upload&wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a>
12990 <a href="/index.php?title=3E&action=edit&redlink=1" class="new" title="3E (page does not exist)">3E</a> <a href="/index.php?title=3E%2B&action=edit&redlink=1" class="new" title="3E+ (page does not exist)">3E+</a>
12995 Special characters in embedded file links (bug 27679)
12997 [[File:Contains & ampersand.jpg]]
12998 [[File:Does not exist.jpg|Title with & ampersand]]
13000 <p><a href="/index.php?title=Special:Upload&wpDestFile=Contains_%26_ampersand.jpg" class="new" title="File:Contains & ampersand.jpg">File:Contains & ampersand.jpg</a>
13001 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13007 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13009 Text's been normalized?
13011 <p>Text's been normalized?
13016 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13018 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13020 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13025 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13027 [http://www.example.org/ ideograms]
13029 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13034 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13036 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13038 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13062 Bug 31098 Template which includes system messages which includes the template
13066 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13067 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13072 Bug31490 Turkish: ucfirst 'blah'
13083 Bug31490 Turkish: ucfirst 'ix'
13094 Bug31490 Turkish: lcfirst 'BLAH'
13105 Bug31490 Turkish: ucfırst (with a dotless i)
13111 <p><a href="/index.php?title=%C5%9Eablon:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Şablon:Ucfırst:blah (sayfa mevcut değil)">Şablon:Ucfırst:blah</a>
13116 Bug31490 ucfırst (with a dotless i) with English language
13122 <p><a href="/index.php?title=Template:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Template:Ucfırst:blah (page does not exist)">Template:Ucfırst:blah</a>
13127 Bug 26375: TOC with italics
13129 title=[[Main Page]]
13132 == ''Lost'' episodes ==
13134 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13136 <li class="toclevel-1 tocsection-1"><a href="#Lost_episodes"><span class="tocnumber">1</span> <span class="toctext"><i>Lost</i> episodes</span></a></li>
13139 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Lost episodes">edit</a>]</span> <span class="mw-headline" id="Lost_episodes"><i>Lost</i> episodes</span></h2>
13144 Bug 26375: TOC with bold
13146 title=[[Main Page]]
13149 == '''should be bold''' then normal text ==
13151 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13153 <li class="toclevel-1 tocsection-1"><a href="#should_be_bold_then_normal_text"><span class="tocnumber">1</span> <span class="toctext"><b>should be bold</b> then normal text</span></a></li>
13156 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: should be bold then normal text">edit</a>]</span> <span class="mw-headline" id="should_be_bold_then_normal_text"><b>should be bold</b> then normal text</span></h2>
13161 Bug 33845: Headings become cursive in TOC when they contain an image
13163 title=[[Main Page]]
13166 == Image [[Image:foobar.jpg]] ==
13168 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13170 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
13173 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Image">edit</a>]</span> <span class="mw-headline" id="Image">Image <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></span></h2>
13178 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
13180 title=[[Main Page]]
13183 == <blockquote>Quote</blockquote> ==
13185 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13187 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
13190 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Quote">edit</a>]</span> <span class="mw-headline" id="Quote"><blockquote>Quote</blockquote></span></h2>
13195 Unclosed tags in TOC
13197 title=[[Main Page]]
13201 <small>Hanc marginis exiguitas non caperet.</small>
13204 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13206 <li class="toclevel-1 tocsection-1"><a href="#Proof:_2_.3C_3"><span class="tocnumber">1</span> <span class="toctext">Proof: 2 < 3</span></a></li>
13209 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Proof: 2 < 3">edit</a>]</span> <span class="mw-headline" id="Proof:_2_.3C_3">Proof: 2 < 3</span></h2>
13210 <p><small>Hanc marginis exiguitas non caperet.</small>
13216 Multiple tags in TOC
13219 == <i>Foo</i> <b>Bar</b> ==
13221 == <i>Foo</i> <blockquote>Bar</blockquote> ==
13223 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13225 <li class="toclevel-1 tocsection-1"><a href="#Foo_Bar"><span class="tocnumber">1</span> <span class="toctext"><i>Foo</i> <b>Bar</b></span></a></li>
13226 <li class="toclevel-1 tocsection-2"><a href="#Foo_Bar_2"><span class="tocnumber">2</span> <span class="toctext"><i>Foo</i> Bar</span></a></li>
13229 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar"><i>Foo</i> <b>Bar</b></span></h2>
13230 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"><i>Foo</i> <blockquote>Bar</blockquote></span></h2>
13235 Tags with parameters in TOC
13238 == <sup class="in-h2">Hello</sup> ==
13240 == <sup class="a > b">Evilbye</sup> ==
13242 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13244 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
13245 <li class="toclevel-1 tocsection-2"><a href="#b.22.3EEvilbye"><span class="tocnumber">2</span> <span class="toctext"><sup> b">Evilbye</sup></span></a></li>
13248 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a>]</span> <span class="mw-headline" id="Hello"><sup class="in-h2">Hello</sup></span></h2>
13249 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a>]</span> <span class="mw-headline" id="b.22.3EEvilbye"><sup> b">Evilbye</sup></span></h2>
13254 span tags with directionality in TOC
13257 == <span dir="ltr">C++</span> ==
13259 == <span dir="rtl">זבנג!</span> ==
13261 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
13263 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
13265 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
13267 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13269 <li class="toclevel-1 tocsection-1"><a href="#C.2B.2B"><span class="tocnumber">1</span> <span class="toctext"><span dir="ltr">C++</span></span></a></li>
13270 <li class="toclevel-1 tocsection-2"><a href="#.D7.96.D7.91.D7.A0.D7.92.21"><span class="tocnumber">2</span> <span class="toctext"><span dir="rtl">זבנג!</span></span></a></li>
13271 <li class="toclevel-1 tocsection-3"><a href="#The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">3</span> <span class="toctext"><span>The attributes on these span tags must be deleted from the TOC</span></span></a></li>
13272 <li class="toclevel-1 tocsection-4"><a href="#All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">4</span> <span class="toctext"><span>All attributes on these span tags must be deleted from the TOC</span></span></a></li>
13273 <li class="toclevel-1 tocsection-5"><a href="#Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">5</span> <span class="toctext"><span dir="ltr">Attributes after dir on these span tags must be deleted from the TOC</span></span></a></li>
13276 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: C++">edit</a>]</span> <span class="mw-headline" id="C.2B.2B"><span dir="ltr">C++</span></span></h2>
13277 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: זבנג!">edit</a>]</span> <span class="mw-headline" id=".D7.96.D7.91.D7.A0.D7.92.21"><span dir="rtl">זבנג!</span></span></h2>
13278 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: The attributes on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span></span></h2>
13279 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: All attributes on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span></span></h2>
13280 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Attributes after dir on these span tags must be deleted from the TOC">edit</a>]</span> <span class="mw-headline" id="Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"><span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span></span></h2>
13287 == {{int:headline_sample}} ==
13291 Bug 32057: Title needed when expanding <h> nodes.
13293 title=[[Main Page]]
13297 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a>]</span> <span class="mw-headline" id="Headline_text">Headline text</span></h2>
13302 Strip marker in urlencode
13304 {{urlencode:x<nowiki/>y}}
13305 {{urlencode:x<nowiki/>y|wiki}}
13306 {{urlencode:x<nowiki/>y|path}}
13333 Strip marker in formatNum
13335 {{formatnum:1<nowiki/>2}}
13336 {{formatnum:1<nowiki/>2|R}}
13344 Check noCommafy in formatNum
13348 {{formatnum:123456.78}}
13349 {{formatnum:123456.78|NOSEP}}
13357 Strip marker in grammar
13361 {{grammar:elative|foo<nowiki/>bar}}
13368 Strip marker in padleft
13370 {{padleft:|2|x<nowiki/>y}}
13377 Strip marker in padright
13379 {{padright:|2|x<nowiki/>y}}
13386 Strip marker in anchorencode
13388 {{anchorencode:x<nowiki/>y}}
13395 nowiki inside link inside heading (bug 18295)
13397 ==[[foo|x<nowiki>y</nowiki>z]]==
13399 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a>]</span> <span class="mw-headline" id="xyz"><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">xyz</a></span></h2>
13404 new support for bdi element (bug 31817)
13406 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13408 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13413 Ignore pipe between table row attributes
13417 |- id=foo | style='color: red'
13425 <tr id="foo" style="color: red">
13432 Gallery override link with WikiLink (bug 34852)
13435 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
13438 <ul class="gallery">
13439 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13440 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/InterWikiLink"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
13441 <div class="gallerytext">
13451 Gallery override link with absolute external link (bug 34852)
13454 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
13457 <ul class="gallery">
13458 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13459 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="http://www.example.org"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
13460 <div class="gallerytext">
13470 Gallery override link with malicious javascript (bug 34852)
13473 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
13476 <ul class="gallery">
13477 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13478 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/%22_onclick%3D%22alert(%27malicious_javascript_code!%27);"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
13479 <div class="gallerytext">
13489 Gallery with invalid title as link (bug 43964)
13492 File:foobar.jpg|link=<
13495 <ul class="gallery">
13496 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13497 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
13498 <div class="gallerytext">
13506 Language parser function
13515 Padleft and padright as substr
13517 {{padleft:|3|abcde}}
13518 {{padright:|3|abcde}}
13526 Bug 34939 - Case insensitive link parsing ([HttP://])
13528 [HttP://MediaWiki.Org/]
13530 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
13535 Bug 34939 - Case insensitive link parsing ([HttP:// title])
13537 [HttP://MediaWiki.Org/ MediaWiki]
13539 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
13544 Bug 34939 - Case insensitive link parsing (HttP://)
13546 HttP://MediaWiki.Org/
13548 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
13553 ### Parsoids-specific tests
13554 ### Parsoid-PHP parser incompatibilities
13557 1. SOL-sensitive wikitext tokens as template-args
13571 #### The following section of tests are primarily to test
13572 #### wikitext escaping capabilities of Parsoid.
13573 #### A lot of the tests are disabled for the PHP parser either
13574 #### because of minor newline diffs or other reasons.
13575 #### As Parsoid serializer can handle newlines and other HTML
13576 #### more robustly, some of these tests might get reenabled
13577 #### for the PHP parser.
13579 #### --------------- Headings ---------------
13581 #### 1. Nested inside html <h1>=foo=</h1>
13582 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
13583 #### 3. Nested inside html with wikitext split by html tags
13584 #### 4. No escape needed
13585 #### 5. Empty headings <h1></h1>
13586 #### 6. Heading chars in SOL context
13587 #### ----------------------------------------
13589 Headings: 0. Unnested
13591 <nowiki>=foo=</nowiki>
13593 <nowiki>=foo</nowiki>''a''=
13596 </p><p>=foo<i>a</i>=
13601 Headings: 1. Nested inside html
13605 =<nowiki>=foo=</nowiki>=
13606 ==<nowiki>=foo=</nowiki>==
13607 ===<nowiki>=foo=</nowiki>===
13608 ====<nowiki>=foo=</nowiki>====
13609 =====<nowiki>=foo=</nowiki>=====
13610 ======<nowiki>=foo=</nowiki>======
13621 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
13626 <nowiki>*bar</nowiki>
13630 <nowiki>=bar=</nowiki>
13638 Headings: 3. Nested inside html with wikitext split by html tags
13642 =<nowiki>=</nowiki>'''bold'''foo==
13644 <h1>=<b>bold</b>foo=</h1>
13648 Headings: 4. No escaping needed (testing just h1 and h2)
13663 <h1><i>=</i>foo=</h1>
13668 Headings: 5. Empty headings
13672 =<nowiki></nowiki>=
13673 ==<nowiki></nowiki>==
13674 ===<nowiki></nowiki>===
13675 ====<nowiki></nowiki>====
13676 =====<nowiki></nowiki>=====
13677 ======<nowiki></nowiki>======
13688 Headings: 6. Heading chars in SOL context
13692 <!--cmt--><nowiki>=h1=</nowiki>
13698 #### --------------- Lists ---------------
13699 #### 0. Outside nests (*foo, etc.)
13700 #### 1. Nested inside html <ul><li>*foo</li></ul>
13701 #### 2. Inside definition lists
13702 #### 3. Only bullets at start should be escaped
13703 #### 4. No escapes needed
13704 #### 5. No unnecessary escapes
13705 #### 6. Escape bullets in SOL position
13706 #### 7. Escape bullets in a multi-line context
13707 #### ----------------------------------------
13710 Lists: 0. Outside nests
13712 <nowiki>*foo</nowiki>
13714 <nowiki>#foo</nowiki>
13722 Lists: 1. Nested inside html
13724 *<nowiki>*foo</nowiki>
13726 *<nowiki>#foo</nowiki>
13728 *<nowiki>:foo</nowiki>
13730 *<nowiki>;foo</nowiki>
13732 #<nowiki>*foo</nowiki>
13734 #<nowiki>#foo</nowiki>
13736 #<nowiki>:foo</nowiki>
13738 #<nowiki>;foo</nowiki>
13760 Lists: 2. Inside definition lists
13762 ;<nowiki>;foo</nowiki>
13764 ;<nowiki>:foo</nowiki>
13766 ;<nowiki>:foo</nowiki>
13769 :<nowiki>:foo</nowiki>
13784 Lists: 3. Only bullets at start of text should be escaped
13786 *<nowiki>*foo*bar</nowiki>
13788 *<nowiki>*foo</nowiki>''it''*bar
13792 <ul><li>*foo<i>it</i>*bar
13798 Lists: 4. No escapes needed
13810 <ul><li><i>foo</i>*bar
13812 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13817 Lists: 5. No unnecessary escapes
13819 * bar <span><nowiki>[[foo]]</nowiki></span>
13821 *=bar <span><nowiki>[[foo]]</nowiki></span>
13823 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13825 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13827 *=bar <span>foo]]</span>=
13829 <ul><li> bar <span>[[foo]]</span>
13831 <ul><li>=bar <span>[[foo]]</span>
13833 <ul><li>[[bar <span>[[foo]]</span>
13835 <ul><li>]]bar <span>[[foo]]</span>
13837 <ul><li>=bar <span>foo]]</span>=
13843 Lists: 6. Escape bullets in SOL position
13847 <!--cmt--><nowiki>*foo</nowiki>
13854 Lists: 7. Escape bullets in a multi-line context
13864 #### --------------- HRs ---------------
13865 #### 1. Single line
13866 #### -----------------------------------
13869 HRs: 1. Single line
13874 <nowiki>----</nowiki>
13876 <nowiki>=foo=</nowiki>
13878 <nowiki>*foo</nowiki>
13885 #### --------------- Tables ---------------
13886 #### 1a. Simple example
13887 #### 1b. No escaping needed (!foo)
13888 #### 1c. No escaping needed (|foo)
13889 #### 1d. No escaping needed (|}foo)
13891 #### 2a. Nested in td (<td>foo|bar</td>)
13892 #### 2b. Nested in td (<td>foo||bar</td>)
13893 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13895 #### 3a. Nested in th (<th>foo!bar</th>)
13896 #### 3b. Nested in th (<th>foo!!bar</th>)
13897 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13901 #### 4c. No escaping needed
13902 #### --------------------------------------
13905 Tables: 1a. Simple example
13916 Tables: 1b. No escaping needed
13925 Tables: 1c. No escaping needed
13934 Tables: 1d. No escaping needed
13943 Tables: 2a. Nested in td
13948 |<nowiki>foo|bar</nowiki>
13958 Tables: 2b. Nested in td
13963 |<nowiki>foo||bar</nowiki>
13964 |''it''<nowiki>foo||bar</nowiki>
13969 </td><td><i>it</i>foo||bar
13975 Tables: 2c. Nested in td -- no escaping needed
13990 Tables: 3a. Nested in th
14005 Tables: 3b. Nested in th
14010 !<nowiki>foo!!bar</nowiki>
14020 Tables: 3c. Nested in th -- no escaping needed
14035 Tables: 4a. Escape -
14043 |<nowiki>-bar</nowiki>
14047 <tr><th>-bar</th></tr>
14048 <tr><td>-bar</td></tr>
14053 Tables: 4b. Escape +
14061 |<nowiki>+bar</nowiki>
14065 <tr><th>+bar</th></tr>
14066 <tr><td>+bar</td></tr>
14071 Tables: 4c. No escaping needed
14085 <tr><td>foo-bar</td><td>foo+bar</td></tr>
14086 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
14091 Tables: 4d. No escaping needed
14107 #### --------------- Links ---------------
14108 #### 1. Quote marks in link text
14109 #### 2. Wikilinks: Escapes needed
14110 #### 3. Wikilinks: No escapes needed
14111 #### 4. Extlinks: Escapes needed
14112 #### 5. Extlinks: No escapes needed
14113 #### --------------------------------------
14115 Links 1. Quote marks in link text
14119 [[Foo|<nowiki>Foo''boo''</nowiki>]]
14121 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
14125 Links 2. WikiLinks: Escapes needed
14129 [[Foo|<nowiki>[Foobar]</nowiki>]]
14130 [[Foo|<nowiki>Foobar]</nowiki>]]
14131 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
14132 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
14133 [[Foo|<nowiki>[[Bar]]</nowiki>]]
14134 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
14135 [[Foo|<nowiki>|Bar</nowiki>]]
14137 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
14138 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
14139 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
14140 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
14141 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
14142 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
14143 <a href="Foo" rel="mw:WikiLink">|Bar</a>
14147 Links 3. WikiLinks: No escapes needed
14154 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
14155 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
14159 Links 4. ExtLinks: Escapes needed
14163 [http://google.com <nowiki>[google]</nowiki>]
14164 [http://google.com <nowiki>google]</nowiki>]
14166 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
14167 <a href="http://google.com" rel="mw:ExtLink">google]</a>
14171 Links 5. ExtLinks: No escapes needed
14175 [http://google.com [google]
14177 <a href="http://google.com" rel="mw:ExtLink">[google</a>
14180 #### --------------- Quotes ---------------
14181 #### 1. Quotes inside <b> and <i>
14182 #### 2. Link fragments separated by <i> and <b> tags
14183 #### 3. Link fragments inside <i> and <b>
14184 #### --------------------------------------
14186 1. Quotes inside <b> and <i>
14188 ''<nowiki>'foo'</nowiki>''
14189 ''<nowiki>''foo''</nowiki>''
14190 ''<nowiki>'''foo'''</nowiki>''
14191 '''<nowiki>'foo'</nowiki>'''
14192 '''<nowiki>''foo''</nowiki>'''
14193 '''<nowiki>'''foo'''</nowiki>'''
14194 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
14202 <b>foo'<i>bar'</i>baz</b>
14207 2. Link fragments separated by <i> and <b> tags
14209 [[''foo''<nowiki>hello]]</nowiki>
14211 [['''foo'''<nowiki>hello]]</nowiki>
14213 <p>[[<i>foo</i>hello]]
14214 </p><p>[[<b>foo</b>hello]]
14219 2. Link fragments inside <i> and <b>
14220 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
14221 this is one of the shortcomings of this format)
14223 ''[[foo''<nowiki>]]</nowiki>
14225 '''[[foo'''<nowiki>]]</nowiki>
14228 </p><p><b>[[foo</b>]]
14232 #### --------------- Paragraphs ---------------
14233 #### 1. No unnecessary escapes
14234 #### --------------------------------------
14237 1. No unnecessary escapes
14239 bar <span><nowiki>[[foo]]</nowiki></span>
14241 =bar <span><nowiki>[[foo]]</nowiki></span>
14243 [[bar <span><nowiki>[[foo]]</nowiki></span>
14245 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
14247 <nowiki>=bar </nowiki><span>foo]]</span>=
14249 <p>bar <span>[[foo]]</span>
14250 </p><p>=bar <span>[[foo]]</span>
14251 </p><p>[[bar <span>[[foo]]</span>
14252 </p><p>]]bar <span>[[foo]]</span>
14253 </p><p>=bar <span>foo]]</span>=
14257 #### --------------- PRE ------------------
14258 #### 1. Leading space in SOL context should be escaped
14259 #### --------------------------------------
14261 1. Leading space in SOL context should be escaped
14265 <nowiki> foo</nowiki>
14266 <!--cmt--><nowiki> foo</nowiki>
14273 #### --------------- HTML tags ---------------
14276 #### 3. multi-line html tag
14277 #### --------------------------------------
14283 <a href="http://google.com">google</a>
14285 <a href="http://google.com">google</a>
14291 <nowiki><div>foo</div>
14292 <div style="color:red">foo</div></nowiki>
14294 <p><div>foo</div>
14295 <div style="color:red">foo</div>
14300 3. multi-line html tag
14312 #### --------------- Others ---------------
14316 <nowiki>foo</nowiki>
14318 <p><nowiki>foo</nowiki>
14323 Tag-like HTML structures are passed through as text
14345 </p><p>1<d e>f
14350 # This fails in the PHP parser (see bug 40670,
14351 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
14353 Tag names followed by punctuation should not be recognized as tags
14359 <p><s.ome> text
14364 HTML tag with necessary entities in attributes
14366 <span title="&amp;">foo</span>
14368 <p><span title="&amp;">foo</span>
14373 HTML tag with 'unnecessary' entity encoding in attributes
14375 <span title="&">foo</span>
14377 <p><span title="&">foo</span>
14382 HTML tag with broken attribute value quoting
14384 <span title="Hello world>Foo</span>
14386 <p><span>Foo</span>
14391 Parsoid-only: HTML tag with broken attribute value quoting
14395 <span title="Hello world>Foo</span>
14397 <p><span title="Hello world">Foo</span>
14402 Table with broken attribute value quoting
14405 | title="Hello world|Foo
14416 Table with broken attribute value quoting on consecutive lines
14419 | title="Hello world|Foo
14420 | style="color:red|Bar
14433 Parsoid-only: Table with broken attribute value quoting on consecutive lines
14438 | title="Hello world|Foo
14439 | style="color:red|Bar
14444 <td title="Hello world">Foo
14445 </td><td style="color: red">Bar
14451 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14461 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14471 Accept empty td cell attribute
14474 | align="center" | foo || |
14479 <td align="center"> foo </td>
14486 Non-empty attributes in th-cells
14489 ! Foo !! style="color: red" | Bar
14495 <th style="color: red"> Bar
14501 Accept empty attributes in th-cells
14516 Empty table rows go away
14537 ### Parsoid-centric tests for testing RTing of inter-element separators
14538 ### Edge cases not tested by existing parser tests and specific to
14539 ### Parsoid-specific serialization strategies.
14543 RT-ed inter-element separators should be valid separators
14556 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
14557 (Parsoid-only since PHP parser relies on Tidy for correct output)
14573 Empty TD followed by TD with tpl-generated attribute
14578 |{{echo|style='color:red'}}|foo
14592 Indented table with an empty td
14611 Empty TR followed by a template-generated TR
14612 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
14618 {{echo|<tr><td>foo</td></tr>}}
14626 <td>foo</td></tr></tbody></table>
14629 ## PHP and parsoid output differ for this, and since this is primarily
14630 ## for testing Parsoid's serializer, marking this Parsoid only
14632 Empty TR followed by mixed-ws-comment line should RT correctly
14646 <td> <!--c--></td></tr>
14648 <td><!--c--> <!--d--></td></tr>
14654 Multi-line image caption generated by templates with/without trailing newlines
14658 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
14659 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
14661 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC</div></div></div>
14662 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC\n\n</div></div></div>
14666 ## PHP emits broken html for this, and since this is primarily
14667 ## a Parsoid serializer test, marking this Parsoid only
14669 Improperly nested inline or quotes tags with whitespace in between
14673 <span> <s>x</span> </s>
14676 <p><span> <s>x</s></span><s> </s>
14677 <b> <i>x</i></b><i> </i></span>
14686 Try for 100% code coverage